Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_town_graveyard_Create_0

(view raw script w/o annotations or w/e)
1
if (global.chapter == 4)
2
{
3
    if (global.plot >= 40 && global.plot < 100)
4
    {
5
        var snowy_npc = instance_create(148, 59, obj_npc_room);
6
        with (snowy_npc)
7
        {
8
            sprite_index = spr_snowy_ut;
9
            
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
10
        }
11
        var snowy_dad_npc = instance_create(181, 57, obj_npc_room);
12
        with (snowy_dad_npc)
13
        {
14
            sprite_index = spr_npc_snowy_dad_behind;
15
            
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
16
        }
17
    }
18
}