Undertale script viewer

← back to main script listing

gml_Object_blt_temhand_Alarm_1

(view raw script w/o annotations or w/e)
1
direction = temdir[temno] - 180;
2
speed = 12;
3
if (direction == 0)
4
{
5
    if (x >= (temx1[temno] - 6))
6
    {
7
        temx1[temno] = 0;
8
        temno -= 1;
9
        x = temx2[temno] - 22;
10
        y += 4;
11
    }
12
}
13
if (direction == 180)
14
{
15
    if (x <= (temx1[temno] + 6))
16
    {
17
        temx1[temno] = 0;
18
        temno -= 1;
19
        x = temx2[temno] + 2;
20
    }
21
}
22
if (direction == 270)
23
{
24
    if (y >= (temy1[temno] - 6))
25
    {
26
        temx1[temno] = 0;
27
        temno -= 1;
28
        y = temy2[temno] - 22;
29
    }
30
}
31
if (direction == 90)
32
{
33
    if (y <= (temy1[temno] + 6))
34
    {
35
        temx1[temno] = 0;
36
        temno -= 1;
37
        x += 4;
38
        y = temy2[temno] + 2;
39
    }
40
}
41
alarm[1] = 1;
gml_Object_blt_temhand_Alarm_1.gml

direction = temdir[temno] - 180; speed = 12; if (direction == 0) { if (x >= (temx1[temno] - 6)) { temx1[temno] = 0; temno -= 1; x = temx2[temno] - 22; y += 4; } } if (direction == 180) { if (x <= (temx1[temno] + 6)) { temx1[temno] = 0; temno -= 1; x = temx2[temno] + 2; } } if (direction == 270) { if (y >= (temy1[temno] - 6)) { temx1[temno] = 0; temno -= 1; y = temy2[temno] - 22; } } if (direction == 90) { if (y <= (temy1[temno] + 6)) { temx1[temno] = 0; temno -= 1; x += 4; y = temy2[temno] + 2; } } alarm[1] = 1; if (temno < 4 && global.turntimer < 2 && turned == 0) { turned = 1; global.turntimer = -1; global.mnfight = 3; } if (instance_number(object_index) > 1) instance_destroy(); if (temno == 0 && y < (ystart + 25)) { temno = 0; if (instance_exists(obj_tembody)) obj_tembody.atk = 0; instance_destroy(); }
42
if (temno < 4 && global.turntimer < 2 && turned == 0)
43
{
44
    turned = 1;
45
    global.turntimer = -1;
46
    global.mnfight = 3;
47
}
48
if (instance_number(object_index) > 1)
49
    instance_destroy();
50
if (temno == 0 && y < (ystart + 25))
51
{
52
    temno = 0;
53
    if (instance_exists(obj_tembody))
54
        obj_tembody.atk = 0;
55
    instance_destroy();
56
}