Undertale script viewer

← back to main script listing

gml_Object_obj_sorrybody_Other_11

(view raw script w/o annotations or w/e)
1
if (ch == 1)
2
{
3
    if (obj_heart.x == obj_heart.xprevious && obj_heart.y == obj_heart.yprevious)
4
        scr_damagestandard_x();
5
}
6
if (ch == 0)
7
{
8
    if (obj_heart.x != obj_heart.xprevious || obj_heart.y != obj_heart.yprevious)
9
        scr_damagestandard_x();
10
}