Undertale script viewer

← back to main script listing

gml_Object_obj_undynea_chaser_Create_0

(view raw script w/o annotations or w/e)
1
scr_depth
scr_depth

depth = 50000 - ((y * 10) + (sprite_height * 10));
(0, 0, 0, 0, 0);
2
STOPPER = 0;
3
image_speed = 0.334;
4
dsprite = spr_undyne_helmet_d;
5
usprite = spr_undyne_helmet_u;
6
lsprite = spr_undyne_helmet_l;
7
rsprite = spr_undyne_helmet_r;
8
dtsprite = spr_undyne_helmet_d;
9
utsprite = spr_undyne_helmet_u;
10
ltsprite = spr_undyne_helmet_l;
11
rtsprite = spr_undyne_helmet_r;
12
myinteract = 0;
13
facing = 0;
14
fun = 0;
15
npcdir = 0;
16
d = 0;
17
con = 0;
18
active = 1;
19
new = 1;
20
sans = 0;
21
if (global.flag[67 status_papyrus] == 1)
22
    sans = 1;
23
if (room == room_water_undynefinal)
24
    new = 0;
25
for (i = 0; i < 60; i += 1)
26
{
27
    rememberx[i] = x;
28
    remembery[i] = y;
29
}
30
global.flag[17 menu_disabled] = 1;
31
if (global.plot > 121)
32
    instance_destroy();
33
if (room == room_water_undynefinal2)
34
{
35
    if (global.entrance == 1)
36
        y = obj_mainchara.y + 100;
37
    if (global.entrance == 2)
38
        y = obj_mainchara.y - 100;
39
}
40
if (room == room_water_undynefinal3)
41
{
42
    if (global.entrance == 1)
43
        x = obj_mainchara.x - 100;
44
    if (global.entrance == 2)
45
        x = obj_mainchara.x + 100;
46
}
47
if (room == room_fire1)
48
{
49
    if (global.entrance == 1)
50
        x = obj_mainchara.x - 60;
51
    if (global.entrance == 2)
52
        x = obj_mainchara.x + 60;
53
}