Undertale script viewer

← back to main script listing

gml_Object_obj_gyftrothead_Alarm_4

(view raw script w/o annotations or w/e)
1
hspeed = 0;
2
alarm[1] = 40 + random(20);
gml_Object_obj_gyftrothead_Alarm_1.gml

if (x > (xstart + 8)) hspeed = -1; else hspeed = 1; if (instance_exists(obj_gyftrotmouth)) obj_gyftrotmouth.hspeed = hspeed; alarm[4] = 8 + random(10);
3
if (instance_exists(obj_gyftrotmouth))
4
    obj_gyftrotmouth.hspeed = hspeed;