1 | if (scene < 13) |
2 | { |
3 | with (obj_axis_npc) |
4 | { |
5 | action_sprite = false |
6 | if (abs(y - obj_pl.y) < 20) |
7 | { |
8 | if (obj_pl.x < x) |
9 | npc_direction = "left" |
10 | else if (obj_pl.x > x) |
11 | npc_direction = "right" |
12 | } |
13 | else if (obj_pl.y > y) |
14 | npc_direction = "down" |
15 | else if (obj_pl.y < y) |
16 | npc_direction = "up" |
17 | } |
18 | scr_audio_fade_out |
19 | scene = 45 |
20 | } |