image_index += animation_spd; if animation_end() animation_spd = 0; else if image_index == 0 && animation_spd < 0 instance_destroy();