Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_building_breakable_Draw_0

(view raw script w/o annotations or w/e)
1
if (con == 3)
2
{
3
    despawn_timer++;
4
    if (despawn_timer == 5)
5
    {
6
        var fx = instance_create(x - 19, y + 10, obj_susiezilla_multiexplosion);
7
        fx.depth = depth - 11;
8
    }
9
    if (despawn_timer >= 5)
10
    {
11
        image_alpha = 1 - image_alpha;
12
        if (despawn_timer >= 20)
13
        {
14
            image_index = 3;
15
            con = 4;
16
            collectible = instance_create(x + 40, y + 80, obj_susiezilla_collectible);
17
            collectible.depth = depth - 100;
18
            collectible.itemtype = 4;
19
            with (collectible)
20
                event_user(0);
21
        }
22
    }
23
}
24
if (con == 2)
25
{
26
    timer++;
27
    if (timer == 12)
28
    {
29
        con = 1;
30
        timer = 0;
31
    }
32
}
33
draw_self_offset(0, -height);