Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_ch2_noellepuzzle_key_kris_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]
 = 15;
gml_Object_obj_ch2_noellepuzzle_key_kris_Alarm_0.gml

if (i_ex(obj_ch2_noellepuzzle_forcefield)) { with (obj_ch2_noellepuzzle_forcefield) { if (forcefield_id == other.forcefield_id) { snd_play(snd_spearappear); fadeout = true; } } } if (i_ex(obj_ch2_city_noelle_monologue)) { with (obj_ch2_city_noelle_monologue) alarm[0]
 = 1;
}
15
        snd_play(snd_wing);
16
        var exit_forcefield = instance_create(x - 130, y - 40, obj_forcefield);
17
        with (exit_forcefield)
18
        {
19
            image_xscale = 2;
20
            image_yscale = 4;
21
            
scr_depth
scr_depth

function
scr_depth()
{ depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
22
            canttalk = 1;
23
        }
24
    }
25
}