Undertale script viewer

← back to main script listing

gml_Object_obj_objshake_Alarm_1

(view raw script w/o annotations or w/e)
1
if (oo == 0)
2
    oo = 1;
3
else
4
    oo = 0;
5
if (oo == 0)
6
    obj.x = thisx - shx;
7
if (oo == 1)
8
    obj.x = thisx + shx;
9
shx -= 1;
10
if (shx > 0)
11
{
12
    alarm[1] = shaketime;
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(); }
13
}
14
else
15
{
16
    obj.x = thisx;
17
    instance_destroy();
18
}