Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_sneo_susie_act_Step_2

(view raw script w/o annotations or w/e)
1
if (turnsleft < 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 + 10;
13
    y = obj_heart.y + 10;
14
    if (instance_exists(obj_sneo_fakeheart))
15
    {
16
        x = -9999;
17
        y = -9999;
18
    }
19
}
20
axe_timer++;
21
if (axe_timer > 8 && visible == true)
22
{
23
    axe_timer = 0;
24
    instance_create(x, y, obj_sneo_tiny_susie_axe);
25
}
26
if (!instance_exists(obj_heart))
27
    visible = false;
28
if (instance_exists(obj_heart))
29
{
30
    if (alarm[0] == 9)
31
        visible = false;
32
    else if (alarm[0] == 8)
33
        visible = false;
34
    else if (alarm[0] == 5)
35
        visible = false;
36
    else if (alarm[0] == 4)
37
        visible = false;
38
    else if (alarm[0] == 1)
39
        visible = false;
40
    else if (alarm[0] == 0)
41
        visible = false;
42
    else
43
        visible = true;
44
}