Deltarune (Chapter 3) script viewer

← back to main script listing

gml_GlobalScript_scr_depth_height

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

function
scr_depth_height(arg0)
{ depth = 100000 - (((y - arg0) * 10) + ((sprite_height - sprite_yoffset) * 10)); } function scr_depth_pivot() { depth = 100000 - (y * 10); } function scr_depth_offset(arg0) { depth = 100000 - (((y - sprite_yoffset) + (arg0 * image_yscale)) * 10); }
(arg0)
2
{
3
    depth = 100000 - (((y - arg0) * 10) + ((sprite_height - sprite_yoffset) * 10));
4
}
5
6
function scr_depth_pivot()
7
{
8
    depth = 100000 - (y * 10);
9
}
10
11
function scr_depth_offset(arg0)
12
{
13
    depth = 100000 - (((y - sprite_yoffset) + (arg0 * image_yscale)) * 10);
14
}