Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_ch2_keyboardpuzzle_solo_tile_Alarm_0

(view raw script w/o annotations or w/e)
1
var _forcefield = instance_nearest(x + 120, y - 200, obj_forcefield);
2
if (!i_ex(_forcefield))
3
    exit;
4
if (buttonIndex == 0)
5
    instance_destroy(_forcefield);
6
with (_forcefield)
7
{
8
    x -= 240;
9
    y += 160;
10
    with (solid1)
11
    {
12
        x -= 240;
13
        y += 160;
14
    }
15
}