Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_mike_door_Create_0

(view raw script w/o annotations or w/e)
1
image_speed = 0;
2
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
3
xx = 0;
4
act = 0;
5
timer = 0;
6
charge = 0;
7
rumble = 0;
8
alpha = 0;
9
xscale = 1;
10
global.flag[1697] = 0;
11
if (global.flag[1697] == 1)
12
{
13
    act = 1;
14
    xscale = 0;
15
    with (obj_solidblockDark)
16
    {
17
        if (x == 200 && y == 200)
18
            image_xscale = 1;
19
    }
20
}
21
else
22
{
23
    with (obj_doorAny)
24
    {
25
        if (y < 300)
26
            y = -1000;
27
    }
28
}
29
console_version = global.is_console || onSteamDeck();
30
lastinteract = global.interact;