Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_ch2_blue_button_Step_0

(view raw script w/o annotations or w/e)
1
if (pressed)
2
    exit;
3
var checkPress = 0;
4
if (i_ex(obj_mainchara) && !pressed && global.interact == 0)
5
{
6
    if (place_meeting(x, y, obj_mainchara))
7
        checkPress = 1;
8
}
9
if (checkPress)
10
{
11
    if (pressed == 0)
12
    {
13
        pressed = 1;
14
        alarm[0]
 = 30;
gml_Object_obj_ch2_blue_button_Alarm_0.gml

var _forcefield = instance_nearest(x - 160, y + 160, obj_forcefield); if (!i_ex(_forcefield)) exit; with (_forcefield) { stayVisible = 0; y -= 160; if (i_ex(solid1)) solid1.y -= 160; }
15
    }
16
}