Zachary_Alan
Member
Hello, I would like the gun object in my game to play an animation when it shoots by switching sprite, and then at the end of the animation it switches back to the regular sprite, but I can't get it to work...
I for some reason can't find an answer to this that isn't for GMS2.
Code:
if(image_index >= image_number){///Reset animation
sprite_index = spr_gun;
}