Deltarune (Chapter 3) script viewer

← back to main script listing

gml_GlobalScript_scr_depth

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

function
scr_depth()
{ if (argument_count > 0) { with (argument0) depth = 100000 - ((y * 10) + (sprite_height * 10)); } else { depth = 100000 - ((y * 10) + (sprite_height * 10)); } }
()
2
{
3
    if (argument_count > 0)
4
    {
5
        with (argument0)
6
            depth = 100000 - ((y * 10) + (sprite_height * 10));
7
    }
8
    else
9
    {
10
        depth = 100000 - ((y * 10) + (sprite_height * 10));
11
    }
12
}