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.

原文地址:https://www.cnblogs.com/ketmales/p/2843471.html