Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_enemy_marker_Step_0

(view raw script w/o annotations or w/e)
1
if (sprite_exists(sprite_index))
2
{
3
    if (updatedepth)
4
        
scr_depth_alt
scr_depth_alt

function
scr_depth_alt()
{ depth = 100000 - ((y * 10) + ((sprite_height - sprite_yoffset) * 10)); }
();
5
}