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
cocos2d-iphone
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