# Objective-c Cocos2d moving a sprite

I hope someone knows how to do the following with cocos2d:

I want a sprite to move but not in a single line by using

[cocosGuy runAction: [CCMoveTo actionWithDuration:1 position:location]];


What I want is the sprite to do some kind of movements that I preestablish. For example in some point i want the sprirte to move for instance up and then down but in a curve. Do I have to do this with flash like this documents says?

http://www.cocos2d-iphone.org/wiki/doku.php/prog_guide:animation

Using the CCSequence allows for some pretty complex animations. You can even add special actions like CCCallFunc or similar to execute code at certain points in your sequence.
• That's possible. You can run a sequence with: Move, CallFunction. And then in that function that is being called you could run another action or sequence. There are lots of possibilities with this system. Nov 24 '11 at 22:48