1 |
if (d == 0) |
2 |
scr_depthscr_depthdepth = 50000 - ((y * 10) + (sprite_height * 10)); (); |
3 |
if (fun == 0) |
4 |
{ |
5 |
if (instance_exists(obj_face_undyne)) |
6 |
{ |
7 |
image_index = obj_face_undyne.image_index; |
8 |
} |
9 |
else |
10 |
{ |
11 |
myinteract = 0; |
12 |
if (speed == 0 && path_speed == 0) |
13 |
{ |
14 |
image_index = 0; |
15 |
image_speed = 0; |
16 |
} |
17 |
if (speed > 0) |
18 |
image_speed = 0.2; |
19 |
if (path_speed > 0) |
20 |
image_speed = 0.2; |
21 |
if (path_position == 1) |
22 |
{ |
23 |
image_index = 0; |
24 |
image_speed = 0; |
25 |
} |
26 |
if (npcdir == 1) |
27 |
scr_npcdirscr_npcdirif (myinteract == 0)
{
if (direction >= 225 && direction < 315)
{
facing = 0;
sprite_index = dsprite;
}
if (direction >= 315 || direction < 45)
{
facing = 1;
sprite_index = rsprite;
}
if (direction >= 45 && direction < 135)
{
facing = 2;
sprite_index = usprite;
}
if (direction >= 135 && direction < 225)
{
facing = 3;
sprite_index = lsprite;
}
}
if (myinteract == (1 + argument0))
{
if (facing == 0)
sprite_index = dtsprite;
if (facing == 1)
sprite_index = rtsprite;
if (facing == 2)
sprite_index = utsprite;
if (facing == 3)
sprite_index = ltsprite;
} (0); |
28 |
} |
29 |
} |
30 |
if (global.flag[20 animation_index] > 0) |
31 |
{ |
32 |
if (global.flag[20 animation_index] == 1) |
33 |
sprite_index = spr_undyne_besties; |
34 |
if (global.flag[20 animation_index] == 2) |
35 |
sprite_index = spr_undyne_youremine; |
36 |
if (global.flag[20 animation_index] == 3) |
37 |
sprite_index = spr_undyne_polite; |
38 |
if (global.faceemotion == 9) |
39 |
sprite_index = spr_undyne_polite; |
40 |
} |