Pause and resume spine animation

I am using spine in libgdx to animate symbols. But I have some problems: how can I pause and resume animation? Thanks for any help or example.

+3


source to share


1 answer


I found the answer after studying the super spinboat example. The answer is as simple as setting the animation timeScale to zero. TimeScale is an animation parameter and is used to change the animation speed. For example, if you set the animation to .timeScale = 2, this means that the animation will play 2x faster, and of course if you set it to zero it will stop. Good decision.



+1


source







All Articles