Deltarune script viewer

← back to main script listing

gml_Object_obj_sneo_tiny_ralsei_Collision_obj_sneo_heartattack

(view raw script w/o annotations or w/e)
1
if (active == 0)
2
    return;
3
if (frametype == 0)
4
{
5
    frametype = 1
6
    other.heart_health -= 4
7
}
8
else if (frametype == 1)
9
{
10
    frametype = 0
11
    hp -= 10
12
alarm[0]
13
    if (!audio_is_playing(snd_hurt1))
14
        snd_play(snd_hurt1)
15
}