Undertale script viewer

← back to main script listing

gml_Object_obj_heartcontainer_Step_0

(view raw script w/o annotations or w/e)
1
if (image_index >= 6 && con == 0)
2
{
3
    image_speed = 0;
4
    con = 2;
5
    alarm[4] = 30;
6
}
7
if (con == 3)
8
{
9
    sprite_index = spr_heartcontainer;
10
    if (image_blend == c_white)
11
        sprite_index = spr_heartcontainer_empty;
12
    image_speed = 0.1;
13
    h += 1;
14
    if (h >= sprite_height)
15
    {
16
        con = 4;
17
        if (image_blend == c_white)
18
            snd_play(snd_impact);
19
    }
20
}