1 | if (global.dialogue_open) |
2 | exit; |
3 | event_inherited(); |
4 | if (npc_arrived == 1) |
5 | { |
6 | can_walk = false; |
7 | if (instance_exists(obj_martlet_npc) && obj_martlet_npc.npc_arrived != 1) |
8 | exit; |
9 | npc_arrived = 0; |
10 | alarm[0] = 30; |
11 | } |
12 | obj_pl.x = x; |
13 | obj_pl.y = y; |
14 | depth = obj_pl.depth - 1; |
15 | if (player_fade_out == true) |
16 | { |
17 | if (image_alpha > 0) |
18 | image_alpha -= 0.1; |
19 | else if (!alarm[0]) |
20 | alarm[0] = 15; |
21 | } |