Undertale script viewer

← back to main script listing

gml_Object_obj_blockbullet2_Alarm_0

(view raw script w/o annotations or w/e)
1
if (site == 0)
2
    truesite = 1;
3
if (site == 1)
4
    truesite = 0;
5
if (site == 2)
6
    truesite = 3;
7
if (site == 3)
8
    truesite = 2;
9
image_index = truesite;
10
if (site == 0)
11
{
12
    x = obj_spearblocker.x - 300;
13
    y = obj_spearblocker.y;
14
}
15
if (site == 1)
16
{
17
    x = object0.x + 300;
18
    y = object0.y;
19
}
20
if (site == 2)
21
{
22
    x = object0.x;
23
    y = object0.y + 300;
24
}
25
if (site == 3)
26
{
27
    x = object0.x;
28
    y = object0.y - 300;
29
}
30
move_towards_point(object0.x, object0.y, 8 * speedmod);
31
active = 1;