Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_shortcut_door_Create_0

(view raw script w/o annotations or w/e)
1
myinteract = 0;
2
talked = 0;
3
checked = 0;
4
image_xscale = 2;
5
image_yscale = 2;
6
con = 0;
7
image_speed = 0;
8
teleportmode = 0;
9
door_destination = room;
10
door_location = room;
11
on = 1;
12
weirdlight = 
scr_dark_marker
scr_dark_marker

function
scr_dark_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; image_xscale = 2; image_yscale = 2; } return thismarker; }
(x + 6, y + 96, spr_weirdlight);
13
with (weirdlight)
14
{
15
    depth = 895000;
16
    image_speed = 0.125;
17
}
18
if (global.chapter == 1)
19
{
20
    if (global.plot < 60)
21
        on = 0;
22
}
23
if (global.chapter == 2)
24
{
25
    
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
26
    if (global.plot < 100)
27
        on = 0;
28
}
29
if (on == 0)
30
{
31
    sprite_index = spr_shortcut_door_off;
32
    with (weirdlight)
33
        instance_destroy();
34
}