My game has a sprite representing a character. When the character picks up an item, the sprite should stop moving for a period of time.
I use CCbezier to make the sprite move, like this:
sprite->runaction(x)
Now I want the sprite to stop its current action (moving) and later resume it. I can make the sprite stop by using:
sprite->stopaction(x)
but if I do that, I can't resume the movement. How can I do that?