Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_guardener_flower_Step_0

(view raw script w/o annotations or w/e)
1
if (image_index >= (image_number - 1))
2
{
3
    if (sprite_index == spr_guardener_plant_grows)
4
    {
5
        image_index = image_number - 1
6
        image_speed = 0
7
    }
8
    else
9
        instance_destroy()
10
}
11
if ((!instance_exists(obj_quote_battle_guardener)) && (!instance_exists(obj_battle_enemy_attack_guardener_attack_3)) && sprite_index != spr_guardener_plant_disappear)
12
{
13
    sprite_index = spr_guardener_plant_disappear
14
    image_index = 0
15
    image_speed = 1
16
}