我试图在cocos2d 3.0中创建精灵动画。 在我读过的所有教程中都有一个名为CCRepeatForever的类。但在cocos 3.0中它不再存在。我该如何更换它?
这是我的代码:
self.walkAction = [CCRepeatForever actionWithAction: [CCAnimate actionWithAnimation:walkAnim]];
PS抱歉我的英文。
答案 0 :(得分:2)
该类现在名为CCActionRepeatForever
。
将其替换为:
[CCActionRepeatForever actionWithAction:[CCAnimate actionWithAnimation:walkAnim]];