I’m creating a game and I need the sprite to jump (move up and down basically) while its moving on a bezier path so it only moves vertically while it follows the path. If I do thids while it’s moving along the bezier path:
[mySprite runAction:[CCJumpBy actionWithDuration:0.1 position:ccp(0,0) height:10 jumps:1]];
It jumps vertically but instantly it return to the position on the path. What I want is to jump relative to the path.
Anyone knows something about it?
Thanks
1 Answer