Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_church_candle_lightable_Create_0

(view raw script w/o annotations or w/e)
1
lit = 0;
2
con = 0;
3
timer = 0;
4
siner = 0;
5
depth = 600000;
6
boss = 0;
7
if (instance_find(object_index, 0) == id)
8
    boss = 1;
9
if (boss == 1)
10
{
11
    layer_set_visible("TILES_DOOR2", 0);
12
    door2blocker = instance_create(1720, 320, obj_solidblocksized);
13
    door2blocker.image_xscale = 3;
14
    if (global.flag[705] == 1)
15
    {
16
        safe_delete(door2blocker);
17
        layer_set_visible("TILES_DOOR2", 1);
18
        if (i_ex(obj_overworld_bulletarea))
19
        {
20
            with (obj_overworld_bulletarea)
21
                y = room_height * sprite_height;
22
        }
23
    }
24
}
25
mylight = instance_create(x, y, obj_lightsource);
26
mylight.image_alpha = 0;
27
if (global.flag[705] == 1)
28
    lit = 2;