Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_sneo_tiny_susie_Step_2

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