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 Comment

  1. Pingback: peak property and casualty

Leave a Reply

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




Theme by HermesThemes

Copyright © 2018 CoderzHeaven. All Rights Reserved

Please wait...

Subscribe to our newsletter

Want to be notified when our article is published? Enter your email address and name below to be the first to know.