Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_mansion_stanchion_Create_0

(view raw script w/o annotations or w/e)
1
event_inherited();
2
image_speed = 0;
3
if (i_ex(obj_dw_mansion_traffic_overhang))
4
    depth = 86200;
5
else if (room == room_dw_mansion_east_2f_d)
6
    depth = 1000000;
7
else
8
    
scr_depth
scr_depth

function
scr_depth()
{ depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();