Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_homealone_treat_catcher_Create_0

(view raw script w/o annotations or w/e)
1
if (!i_ex(obj_homealone_heart))
2
    instance_create(x - 8, y, obj_readable_room1);
3
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
4
is_disabled = false;
5
depth = 95000;
6
hit_heart = false;
7
hit_timer = 0;
8
hit_active = false;