Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_susiezilla_mansion_Draw_0

(view raw script w/o annotations or w/e)
1
if (hp <= 0)
2
{
3
    despawn_timer++;
4
    if (despawn_timer == 5)
5
    {
6
        var fx = instance_create(x - 59, y - 84, obj_susiezilla_multiexplosion);
7
        fx.depth = depth - 11;
8
    }
9
    if (despawn_timer >= 5)
10
    {
11
        if (despawn_timer >= 20)
12
        {
13
            instance_destroy();
14
            con = 4;
15
            collectible = instance_create(x, y - 20, obj_susiezilla_collectible);
16
            collectible.depth = depth - 100;
17
            collectible.itemtype = 8;
18
            with (collectible)
19
                event_user(0);
20
        }
21
    }
22
}
23
depth = 100000 - ((y - 120) * 10);
24
draw_self_offset(recoil, -height);
25
if (flashtimer > 0)
26
{
27
    flashtimer--;
28
    gpu_set_fog(1, c_white, 0, 0);
29
    draw_self_offset(recoil, -height);
30
    gpu_set_fog(0, c_white, 0, 0);
31
}