- Home /
How can i play a animation?
I wanna make an endless runner game, and I want to increase the player speed every time the player's score is divisible by 50. I created an animated text that I'd like to appear every time this happens. How can I play it again, when the player's score rises to 100 or 150, and when the animation ends how can I make it jump back to its original place and only appear again when the score is as previously described? I tryd this metod but its call one time animation.
if((ScoreManager.instance.playerscore)%50 == 0) { speedanimation.GetComponent().Play("speedup"); }
Your answer
Follow this Question
Related Questions
2D Animation does not start 1 Answer
Animation not playing! Help needed! 1 Answer
[C#] [2D] Animation mostly not working 1 Answer
2d Animation sprites - right way? 0 Answers
2D Animator: how to get rid the animation "blending" 0 Answers