GameMaker how to stop an animation from looping

Night-Ninja

Member
so I have the basics down on how to stop an animation from looping but I'm having a problem where it will stop the animation after already restarting so it stops at the first frame, how can I get it to stop before it loops back to the first frame?
 

Yal

šŸ§ *penguin noises*
GMC Elder
Add in image_index = image_number - 1; as well, the Animation End event is triggered when the image rolls over from the last to the first image in the animation, so the sprite will be on image_index 0 when the event happens. (It might not be exactly 0 depending on image_speed, but details)
 

Night-Ninja

Member
Add in image_index = image_number - 1; as well, the Animation End event is triggered when the image rolls over from the last to the first image in the animation, so the sprite will be on image_index 0 when the event happens. (It might not be exactly 0 depending on image_speed, but details)
hey it works thanks! I really appreciate it
 
Top