Undertale script viewer

← back to main script listing

gml_Object_obj_objshake_Create_0

(view raw script w/o annotations or w/e)
1
alarm[0] = 1;
2
alarm[1] = 2;
gml_Object_obj_objshake_Alarm_1.gml

if (oo == 0) oo = 1; else oo = 0; if (oo == 0) obj.x = thisx - shx; if (oo == 1) obj.x = thisx + shx; shx -= 1; if (shx > 0) { alarm[1] = shaketime; } else { obj.x = thisx; instance_destroy(); }
3
obj = object_index;
4
shx = 14;
5
shaketime = 2;
6
oo = 0;