0

Animation and move the sprite of one position to another position is done but simultaneously not working. Anyone have an idea, how can I resolve it ??

Akarsh M
  • 1,629
  • 2
  • 24
  • 47

1 Answers1

1

As stated in the comments to your question, you can simply call runAction once for every action you want to run and they will run in parallel, like so

sprite.runAction( action );
sprite.runAction( actionMove );
sprite.runAction( action_back );

If you would want to combine your actions into one parallel action, use CCSpawn

CCFiniteTimeAction parallelAction = CCSpawn.actions( action, actionMove, action_back );
sprite.runAction( parallelAction );

Now, running parallelAction will run action, actionMove and action_back in parallel.

Sebastian Ärleryd
  • 1,774
  • 14
  • 19