Deltarune script viewer

← back to main script listing

gml_RoomCC_room_dw_cyber_intro_connector_1_Create

(view raw script w/o annotations or w/e)
1
if (global.plot < 51)
2
{
3
    extflag = "npc2";
4
    sprite_index = spr_plugboy_cower;
5
    scr_depth
scr_depth

function scr_depth() { depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
6
}
7
else
8
{
9
    var plugboy_npc = instance_create(x, y, obj_npc_room);
10
    plugboy_npc.sprite_index = spr_npc_plugboy;
11
    with (plugboy_npc)
12
        scr_depth
scr_depth

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