Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_b3bs_switchtile_Other_12

(view raw script w/o annotations or w/e)
1
image_index = !image_index;
2
var up = instance_place(x, y - 32, object_index);
3
if (i_ex(up))
4
{
5
    with (up)
6
    {
7
        image_index = !image_index;
8
        with (instance_create(x, y, obj_board_smokepuff))
9
            image_blend = #FFECBD;
10
    }
11
}
12
var down = instance_place(x, y + 32 + 2, object_index);
13
if (i_ex(down))
14
{
15
    with (down)
16
    {
17
        image_index = !image_index;
18
        with (instance_create(x, y, obj_board_smokepuff))
19
            image_blend = #FFECBD;
20
    }
21
}
22
var left = instance_place(x - 32, y, object_index);
23
if (i_ex(left))
24
{
25
    with (left)
26
    {
27
        image_index = !image_index;
28
        with (instance_create(x, y, obj_board_smokepuff))
29
            image_blend = #FFECBD;
30
    }
31
}
32
var right = instance_place(x + 32 + 2, y, object_index);
33
if (i_ex(right))
34
{
35
    with (right)
36
    {
37
        image_index = !image_index;
38
        with (instance_create(x, y, obj_board_smokepuff))
39
            image_blend = #FFECBD;
40
    }
41
}
42
with (obj_dw_b3bs_mysterypuzzle)
43
    update = true;