Deltarune (Chapter 4) script viewer

← back to main script listing

gml_GlobalScript_scr_depth_alt

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

function
scr_depth_alt(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + ((sprite_height - sprite_yoffset) * 10) + (arg1 * 10)); }
(arg0 = id, arg1 = 0)
2
{
3
    with (arg0)
4
        depth = 100000 - ((y * 10) + ((sprite_height - sprite_yoffset) * 10) + (arg1 * 10));
5
}