Undertale script viewer

← back to main script listing

gml_Object_obj_heart_Keyboard_38

(view raw script w/o annotations or w/e)
1
if (movement == 1)
2
{
3
    if (confuse == 0)
4
    {
5
        y -= global.sp;
6
        if (control_check(1) == 1)
7
            y += (global.sp / 2);
8
    }
9
    if (confuse == 1 && y < (global.idealborder[3] - 8))
10
    {
11
        y += global.sp;
12
        if (control_check(1) == 1)
13
            y -= (global.sp / 2);
14
    }
15
}
16
if (movement == 2)
17
{
18
    if (jumpstage == 1 && vspeed == 0)
19
    {
20
        jumpstage = 2;
21
        vspeed = -6;
22
    }
23
}