我想知道我应该用什么代替
animationWithFrames:delay:
和
actionWithAnimation:restoreOriginalFrame:
因为它们发出警告,表明它们已被弃用。
最佳答案
Cocos2d 2.0的用途
CC动画
+(id) animationWithSpriteFrames:(NSArray*)frames delay:(float)delay
CCAnimate
+(id) actionWithAnimation: (CCAnimation*)anim
文件:
http://www.cocos2d-iphone.org/api-ref/2.0.0/interface_c_c_animation.html
http://www.cocos2d-iphone.org/api-ref/2.0.0/interface_c_c_animate.html