Cocos2d-iphone 3.0中不存在CCRepeatForever?

时间:2014-02-04 13:31:53

标签: cocos2d-iphone

我试图在cocos2d 3.0中创建精灵动画。 在我读过的所有教程中都有一个名为CCRepeatForever的类。但在cocos 3.0中它不再存在。我该如何更换它?

这是我的代码:

self.walkAction = [CCRepeatForever actionWithAction: [CCAnimate actionWithAnimation:walkAnim]];

PS抱歉我的英文。

1 个答案:

答案 0 :(得分:2)

该类现在名为CCActionRepeatForever

将其替换为:

[CCActionRepeatForever actionWithAction:[CCAnimate actionWithAnimation:walkAnim]];