How do I stop ALL of a sprite's animations?

0 favourites
  • 4 posts
From the Asset Store
3 pixel charaters with over 8 animations each + animations with a gun
  • I have a single sprite consisting of 36 different animations, each representing a different character in my game. On a game over condition I want to freeze the screen and STOP all the animations of all the characters. How do I do that?

    I thought that simply putting in a Stop event for the sprite would work. (It didn't.) Then I tried: For each [sprite] -> Stop [animation], but that didn't work either.

    Do I need to cycle through all 36 animations and tell each one to stop playing? What's the best way to do that?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Have you thought about using timescale? It'll stop movement of all things, but you can use a set group active/inactive to stop turning during a pause menu.

  • Are you sure other events aren't starting the animations again? LaDestitute's suggestion of placing events that would turn them on again in a Group, is a good one.

  • A cleaner solution would be to put all your sprites in the same family, then set the family's timescale to 0. That way, you won't affect the system's timescale, as you might need to animate menu elements or keep other timers running.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)