Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_ch2_room_castle_1f_Create_0

(view raw script w/o annotations or w/e)
1
con = -1;
2
with (obj_npc_room_animated)
3
{
4
    if (sprite_index == spr_castle_cauldron)
5
    {
6
        depthcancel = 1;
7
        scr_depth
scr_depth

function scr_depth() { depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
8
        depth += 250;
9
    }
10
}
11
if (global.chapter != 2 || global.plot > 12)
12
    instance_destroy();