Deltarune script viewer

← back to main script listing

gml_Object_obj_ch2_room_schoollobby_Create_0

(view raw script w/o annotations or w/e)
1
if (global.chapter >= 2)
2
{
3
    if (global.plot >= 100)
4
    {
5
        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; }
(0, 0, spr_schoollobby_sunsetoverlay);
6
        with (sunset)
7
        {
8
            image_alpha = 0.4;
9
            depth = 2000;
10
        }
11
    }
12
}
13
con = -1;
14
if (global.plot < 8 || global.plot >= 9)
15
    instance_destroy();
16
else
17
    con = 1;