How to stop the sprite sheet animation in cocos2D ?

By | March 17, 2011

Hi,

In one of our previous post we have discussed how to animate sprite sheet in cocos2D.
In some cases you may need to stop the sprite sheet animation abruptly. How to do that?
Here the way to do that. Use the following.

[spriteName stopAction:spriteNameAction];

where spriteName is the name of your sprite & spriteNameAction is the name of your sprite sheet animation action.
🙂

One thought on “How to stop the sprite sheet animation in cocos2D ?

  1. Pingback: peak property and casualty

Leave a Reply

Your email address will not be published. Required fields are marked *