Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_ch2_town_graveyard_Create_0

(view raw script w/o annotations or w/e)
1
con = -1;
2
if (global.chapter != 2)
3
{
4
    instance_destroy();
5
}
6
else
7
{
8
    var alvin_npc = instance_create(87, 50, obj_npc_room);
9
    alvin_npc.sprite_index = spr_npc_alvin_back;
10
    with (alvin_npc)
11
        
scr_depth
scr_depth

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