Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_board_glacier_switch3_Step_0

(view raw script w/o annotations or w/e)
1
if (used == false)
2
{
3
    if (place_meeting(x, y, obj_mainchara_board) || place_meeting(x, y, obj_board_enemy_deer) || place_meeting(x, y, obj_pushableblock_board))
4
        pressed = 1;
5
    else
6
        pressed = 0;
7
}
8
else
9
{
10
    exit;
11
}
12
if (pressed)
13
{
14
    if (soundplayed == 0)
15
    {
16
        soundplayed = 1;
17
        snd_play_pitch(snd_noise, 1.4);
18
    }
19
}
20
if (!pressed)
21
{
22
    if (soundplayed == 1)
23
    {
24
        soundplayed = 0;
25
        snd_play_pitch(snd_noise, 1.1);
26
    }
27
}