Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_church_event_Create_0

(view raw script w/o annotations or w/e)
1
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
2
if (global.chapter == 4)
3
{
4
    if (global.plot >= 290)
5
    {
6
        var roof_marker = 
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; }
(x, y, spr_church_night_roof);
7
        roof_marker.depth = depth;
8
        sprite_index = spr_church_night;
9
        depth += 10000;
10
    }
11
}