About restoreOriginalFrame in Cocos2d

About restoreOriginalFrame in Cocos2d

previous version

[CCAnimate actionWithAnimation:someAnim restoreOriginalFrame:NO]

in cocos2d v2.0.0

[someAnim setRestoreOriginalFrame:NO];
[CCAnimate actionWithAnimation:someAnim];

difference between YES and NO

You need a sprite to call an animation, but the animation may has nothing to do with the sprite. If you want to see the sprite after the animation, you should set restoreOriginalFrame to YES. If you don't want to see the sprite any more, you can set restoreOriginalFrame to NO.

posted on 2013-01-03 23:11  紫澜  阅读(280)  评论(0编辑  收藏  举报