Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_dw_teevie_statue_Create_0

(view raw script w/o annotations or w/e)
1
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)); } }
();
2
var _collider = instance_create(x + 10, y + 120, obj_solidblocksized);
3
with (_collider)
4
{
5
    image_xscale = 1.5;
6
    image_yscale = 0.75;
7
}
8
if (image_xscale < 0)
9
    _collider.x -= 80;
10
if (room == room_dw_b3bs_interstitial)
11
    depth = 900000;