Undertale script viewer

← back to main script listing

gml_Object_obj_plotswitch2_Step_0

(view raw script w/o annotations or w/e)
1
if (myinteract == 1 && global.plot <= 4.5)
2
{
3
    on = 1;
4
    myinteract = 0;
5
    image_index = 1;
6
    global.plot = 5;
7
    global.vshake = 0;
8
    global.hshake = 4;
9
    global.shakespeed = 2;
10
    instance_create(0, 0, obj_shaker);
11
    snd_play(snd_screenshake);
12
    global.interact = 99;
13
}
14
if (instance_exists(obj_shaker) == 0 && global.interact == 99)
15
    global.interact = 0;
16
image_index = on;