Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_npc_sign_Step_1

(view raw script w/o annotations or w/e)
1
if (setdepth == 1)
2
{
3
    
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)); } }
();
4
    depth += depthbonus;
5
}