image_index += animation_spd; if animation_end() { unlock_player(); autosave(); instance_destroy(); }