• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Legacy GM pause animation

A

Amazing creature

Guest
trying to make an animation that stops for a while when it finishes, I thought I made it but when the player is attacking, when it switches the sprite back to idle it doesn't stop anymore, this sometimes also happens when the player is walking, the idle animation doesn't stop anymore
Code:
// idle pause animation
   if sprite_index == spr_LWidle
   {
      if image_index == image_number
      {
       T_idle = 30//image_speed = 0;
      }
      if T_idle != 0 {
         T_idle -= 1;  
         ani_speed = 0//image_speed = 0;
         image_index = 0;
        }
   } else T_idle = 0
 
Last edited by a moderator:

The-any-Key

Member
Before:
Code:
if image_index == image_number
Add:
Code:
show_debug_message("Image_index=" + string(image_index)
I quess it may try decimals. Ex if 5.1==5
 
Top