Undertale script viewer

← back to main script listing

gml_Object_obj_heart_Keyboard_37

(view raw script w/o annotations or w/e)
1
if (movement == 1 || movement == 2)
2
{
3
    if (confuse == 0)
4
    {
5
        x -= global.sp;
6
        if (control_check(1) == 1)
7
            x += (global.sp / 2);
8
    }
9
    if (confuse == 1 && x < (global.idealborder[1] - 8))
10
    {
11
        x += global.sp;
12
        if (control_check(1) == 1)
13
            x += (global.sp / 2);
14
    }
15
}