Deltarune (Chapter 1) script viewer

← back to main script listing

gml_Object_obj_tempblock_room_Create_0

(view raw script w/o annotations or w/e)
1
block = instance_create(x, y, obj_soliddark);
2
block.image_xscale = image_xscale;
3
block.image_yscale = image_yscale;
4
destroymarker = 0;
5
if (room == room_forest_area5)
6
{
7
    talkto = instance_create(x, y, obj_readable_room1);
8
    talkto.image_xscale = image_xscale;
9
    talkto.image_yscale = image_yscale;
10
    tree = instance_create(x - 40, y - 120, obj_blocktree_bg);
11
    with (tree)
12
        scr_depth
scr_depth

function scr_depth() { depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
13
    if (global.flag[237 solved_dark_puzzle] > 0)
14
    {
15
        with (tree)
16
            instance_destroy();
17
        with (block)
18
            instance_destroy();
19
    }
20
}