Cocos2d: Move a Sprite along a path/bezier ?

Posted by eemceebee on Stack Overflow See other posts from Stack Overflow or by eemceebee
Published on 2010-05-14T14:20:04Z Indexed on 2010/05/14 14:24 UTC
Read the original article Hit count: 546

Filed under:

Hi

I need to move a sprite from one CGPoint to another using Cocos2d for the Iphone. The problem is that the animation should be along a bezier.

Basically I would use this :

id move = [CCMoveTo actionWithDuration:.5f position:ccp(100,200)];
[sprite runAction:move];

Now how can I do this in a non linear path ?

Thx

© Stack Overflow or respective owner

Related posts about cocos2d-iphone