• 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!

GML How do I refer to the max frames in a sprite? (image_index) [SOLVED]

Dr_Nomz

Member
How do I use image_index to check if it's on the last frame of it's animation?

I might want to change my animation at some point and I'd like to not have to go in and edit it to be a different number.
 

MaxLos

Member
Wait are you sure about that? I thought all comparisons needed = and stuff, but you can use certain functions instead? Can you show me a few examples?
Oh nah I meant like if floor(image_index) > image_number - 1 sorry for the confusion lol
 
Top