Deltarune script viewer

← back to main script listing

gml_Object_obj_boxpuzzle_event_ch1_Create_0

(view raw script w/o annotations or w/e)
1
if (global.plot >= 50)
2
{
3
    con = -1;
4
    leavecon = -1;
5
    boxcon = -1;
6
    boxon = -1;
7
    image_index = 1;
8
    if (global.flag[212 box_puzzle_state] == 2)
9
    {
10
        image_index = 2;
11
        with (obj_pushableblock_ch1)
12
            instance_destroy();
13
    }
14
}
15
else
16
{
17
    groundblock = instance_create_ch1(x, 120, obj_soliddark_ch1);
18
    groundblock.image_xscale = 2;
19
    global.facing = 1;
20
    con = 1;
21
    leavecon = 0;
22
    boxcon = 0;
23
    boxon = 0;
24
    instance_deactivate_object(obj_doorB_ch1);
25
}
26
image_speed = 0;