1
Technical forum / how to stop an actor's animation when music stops?
« on: October 22, 2016, 11:08:38 PM »
Hello to everybody.Many years passed since the last time I was trying to create a small game. I finaly decided to continue but I have a problem. In a scene there is a music player. I want "On take" to play a music,the 2D actor to go to a dance floor and start dancing and when the music stops I want the actor to stop dancing. The problem is that the music stops but the actor doesn't. The music file is an ogg file. The actor animation is a sprite with looping turn on because the animation is shorter than the music.What is the correct way for telling the game that when this particular music stops,it should stop the actor animation too? Thank you for your time.