Hello, i'm having trouble making it so that when a sprite animation ends, something happens
This is the code i made, except when i run the game the animation just runs infinitely. What am i supposed to do?
GML:
if (stab = 1)
{
sprite_index = s_clover_stab
if (image_index > image_number - 1)
{
sprite_index = s_clover_idle
stab = 0
}
}