Game Development Reference
In-Depth Information
5. Create a SKAction class for coinAnimation using a class method of SKAc-
tion and run the action on the coin sprite added on FSMyScene .
SKAction *coinAnimation = [SKAction
animateWithTextures:coinAnimationTexturestimePerFrame:0.2];
[coinSprite runAction:coinAnimation];
Adding all these lines of code makes our addCoin method:
Search WWH ::




Custom Search