Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_ch2_room_town_shelter_Create_0

(view raw script w/o annotations or w/e)
1
con = -1;
2
customcon = 0;
3
if (global.chapter != 2 || global.flag[315 seen_shelter_scene] == 1)
4
{
5
    instance_destroy();
6
}
7
else
8
{
9
    snowy = 
scr_marker
scr_marker

function
scr_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; } return thismarker; }
(135, 1130, spr_snowy_ut);
10
    with (snowy)
11
        
scr_depth
scr_depth

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

function
scr_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; } return thismarker; }
(170, 1130, spr_mkid_ut);
13
    with (monsterkid)
14
        
scr_depth
scr_depth

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