Undertale script viewer

← back to main script listing

gml_Object_obj_heart_Collision_759

(view raw script w/o annotations or w/e)
1
if (ignore_border == 0)
2
{
3
    if (movement == 13)
4
    {
5
        x = global.idealborder[0] + 4;
6
        event_user(7);
7
        if (hspeed < 0)
8
            hspeed = 0;
9
        jumpstage = 1;
10
    }
11
    if (obj_battlecontroller.runaway != 1)
12
        x = other.x + other.sprite_width;
13
    if (confuse == 1 && obj_battlecontroller.runaway != 1)
14
        x = other.x + other.sprite_width + 8;
15
}