Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_pushable_block_Step_0

(view raw script w/o annotations or w/e)
1
scr_depth
scr_depth

function scr_depth() { depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
2
if (movecourse == 1)
3
{
4
    if (movedir == 1)
5
        x += 8;
6
    if (movedir == 0)
7
        y += 8;
8
    if (movedir == 2)
9
        y -= 8;
10
    if (movedir == 3)
11
        x -= 8;
12
    movetimer += 1;
13
    if (movetimer >= 5)
14
    {
15
        movetimer = 0;
16
        global.interact = 0;
17
        movecourse = 0;
18
    }
19
}
20
if (myinteract == 3)
21
{
22
    if (i_ex(mydialoguer) == false)
23
    {
24
        global.interact = 0;
25
        myinteract = 0;
26
        with (obj_mainchara)
27
            onebuffer = 5;
28
    }
29
}