开发者

Cocos2D: moveBy undeclared?

I tried looking this up, but could not find anything relevant, but I think it's a simple problem. I've been learning Cocos2D, and now all of the sudden it's saying moveBy is undeclared when I try to build my file. The same goes for the other actions.

I'm just simply doing

        id animation = [MoveBy actionWithDuration:2.0 position:ccp(-100, 0)];
    [eggMan runAction: animation];

Is th开发者_开发百科ere anything simple I forgot to import maybe?


CCMoveBy is what you want, rather than MoveBy

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜