Is it possible to run CCRotateBy and CCMoveTo at the same time? So that the sprite is rotating while moving at the same time?
The closest I can get is CCSequence, but this means that I rotate, then move away
A fast, easy to use, free, and community supported 2D game engine
Is it possible to run CCRotateBy and CCMoveTo at the same time? So that the sprite is rotating while moving at the same time?
The closest I can get is CCSequence, but this means that I rotate, then move away
Yes you can. You can use CCSpawn to run multiple actions at the same time.
brilliant! Thanks Ozden79!
Replaced CCSequence with CCSpawn and it worked perfectly
You may not have to spawn (depending on your needs), you can simply tell the sprite to run a RotateBy action, then tell your sprite to run the MoveTo action.
[mySprite runAction:[CCRotateBy ...
[mySprite runAction:[CCMoveTo ...
This works.
You must log in to post.