Undertale script viewer

← back to main script listing

gml_Object_obj_paino_Step_0

(view raw script w/o annotations or w/e)
1
num = 0;
2
if (obj_time.left && num == 0)
3
    num += 1;
4
if (obj_time.down && num == 0)
5
    num += 2;
6
if (obj_time.right && num == 0)
7
    num += 3;
8
if (obj_time.up && num == 0)
9
    num += 4;
10
if (buffer < 1)
11
{
12
    if (control_check_pressed(0))
13
    {
14
        justplayed[num] = 6;
15
        played[num] = 20;
16
        caster_play(p[num], 0.5, 1.13);
17
        for (i = 29; i > 0; i -= 1)
18
            pp[i] = pp[i - 1];
19
        pp[0] = num;
20
    }
21
}
22
for (i = 0; i < 10; i += 1)
23
{
24
    justplayed[i] -= 1;
25
    played[i] -= 1;
26
}
27
global.interact = 1;
28
buffer -= 1;
29
if (control_check(1) == 0)
30
    coff = 0;
31
if (buffer < 0)
32
{
33
    if (control_check(1))
34
        coff += 1;
35
}
36
if (coff > 1)
37
{
38
    global.interact = 0;
39
    instance_destroy();
40
}