Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_mouse_hat_Step_1

(view raw script w/o annotations or w/e)
1
if (act == 2)
2
{
3
    if (y < 260)
4
    {
5
        gravity = 0.5;
6
    }
7
    else
8
    {
9
        
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
(id, 0);
10
        gravity = 0;
11
        vspeed = 0;
12
    }
13
}