Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_fluffyguard_Step_2

(view raw script w/o annotations or w/e)
1
if (hp < 1)
2
{
3
    if (active == 1)
4
        snd_pitch(snd_play(snd_hurt1), 2);
5
    active = 0;
6
    image_alpha -= 0.05;
7
    if (image_alpha < 0.01)
8
        instance_destroy();
9
    exit;
10
}
11
if (!instance_exists(obj_heart))
12
    visible = false;
13
if (instance_exists(obj_heart))
14
{
15
    depth = obj_heart.depth - 1;
16
    x = obj_heart.x + 10;
17
    y = obj_heart.y + 9;
18
    if (instance_exists(obj_sneo_fakeheart))
19
    {
20
        x = -9999;
21
        y = -9999;
22
    }
23
    if (alarm[0] == 9)
24
        visible = false;
25
    else if (alarm[0] == 8)
26
        visible = false;
27
    else if (alarm[0] == 5)
28
        visible = false;
29
    else if (alarm[0] == 4)
30
        visible = false;
31
    else if (alarm[0] == 1)
32
        visible = false;
33
    else if (alarm[0] == 0)
34
        visible = false;
35
    else
36
        visible = true;
37
}