开发者

Cocos2D: moveBy undeclared?

开发者 https://www.devze.com 2023-02-22 02:33 出处:网络
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

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

精彩评论

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