Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_ch2_scene30a_Create_0

(view raw script w/o annotations or w/e)
1
con = -1;
2
customcon = 0;
3
cantrigger = true;
4
torieldoor = 
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; }
(153, 141, spr_lw_krishouse_door);
5
with (torieldoor)
6
    
scr_depth
scr_depth

function
scr_depth()
{ depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
7
if (global.chapter != 2 || global.plot >= 210 || global.plot < 205)
8
{
9
    instance_destroy();
10
}
11
else
12
{
13
    instance_destroy(obj_doorX_musfade);
14
    housetop = 
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; }
(40, 20, spr_cutscene_30a_housetop);
15
    with (housetop)
16
        
scr_depth
scr_depth

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