Undertale script viewer

← back to main script listing

gml_Object_obj_heart_Keyboard_40

(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[2] + 8))
10
    {
11
        y -= global.sp;
12
        if (control_check(1) == 1)
13
            y += (global.sp / 2);
14
    }
15
}