Deltarune (Chapter 1) script viewer

← back to main script listing

gml_Object_obj_classscene_Create_0

(view raw script w/o annotations or w/e)
1
door = 
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; }
(236, 26, spr_classdoor);
2
with (door)
3
    
scr_depth
scr_depth

function
scr_depth()
{ depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
4
con = 0;
5
global.facing = 0;
6
if (global.plot < 2)
7
{
8
    global.facing = 0;
9
    con = 1;
10
    with (obj_mainchara)
11
    {
12
        x = 240;
13
        y = 30;
14
        
scr_depth
scr_depth

function
scr_depth()
{ depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
15
    }
16
    alphys = 
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; }
(50, 50, spr_alphysd);
17
    with (alphys)
18
        
scr_depth
scr_depth

function
scr_depth()
{ depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
19
    global.interact = 1;
20
}
21
if (global.plot >= 3)
22
{
23
    doorb = instance_create(242, 48, obj_doorB);
24
    with (door)
25
        depth = 900000;
26
    with (obj_npc_facing)
27
        instance_destroy();
28
    with (obj_tem_school)
29
        instance_destroy();
30
    sunset = 
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; }
(3, 0, spr_torielclass_sunsetoverlay);
31
    with (sunset)
32
    {
33
        image_alpha = 0.4;
34
        depth = 2000;
35
    }
36
    instance_destroy();
37
}