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
精彩评论