Undertale script viewer

← back to main script listing

gml_Object_obj_heart_Other_17

(view raw script w/o annotations or w/e)
1
if (speed > 10)
2
{
3
    snd_stop(snd_hurt1);
4
    snd_stop(snd_impact);
5
    if (slam_pain == 1)
6
    {
7
        if (global.hp > 1)
8
            global.hp -= 1;
9
    }
10
    snd_play(snd_hurt1);
11
    snd_play(snd_impact);
12
    s_s = instance_create(0, 0, obj_sans_shaker);
13
    s_s.intensity = floor(speed / 3);
14
}