2D Toolkit Forum
2D Toolkit => Support => Topic started by: tom123 on July 27, 2013, 06:08:06 am
-
When the user hits pause, I want all tk2dAnimatedSprites to stop, and then continue when the user hits continue.
What's the correct way to do this?
Right now I'm calling pause() on the tk2dAnimatedSprite, and then when the user hits continue, I'm calling play().
pause() works, but play() doesn't bring it back to playing.. is there anything else I need to call to get him to continue the animation?
-
Use Paused = true to pause, Paused = false to unpause.
Or Pause() and Resume().
If you want all animated sprites to pause, just use
tk2dSpriteAnimator.g_Paused = true;
to pause everything.
-
that worked, thanks!!
I wonder why I missed the Resume() method :/