Undertale script viewer

← back to main script listing

gml_Object_obj_asriel_swordmaster_Other_19

related scripts: Alarm_5 • Alarm_6 • Create_0 • Destroy_0 • Other_12 • Other_13 • Other_15 • Other_16 • Other_17 • Other_18 • Other_19 • Step_0

(view raw script w/o annotations or w/e)
1
if (abs(x - thisx) < 2)
2
    x = thisx;
3
if (x > thisx)
4
    x -= 1;
5
if (x < thisx)
6
    x += 1;