1 |
if (global.interact == 0) |
2 |
{ |
3 |
if (instance_exists(obj_starwalker_overworld)) |
4 |
{ |
5 |
bellcon = 1; |
6 |
myinteract = 0; |
7 |
image_speed = 0.25; |
8 |
with (obj_overworldbulletparent) |
9 |
{ |
10 |
active = 0; |
11 |
instance_destroy(); |
12 |
} |
13 |
with (obj_darkcontroller) |
14 |
charcon = 0; |
15 |
snd_play(snd_bell); |
16 |
if (obj_starwalker_overworld.beatcon == 0) |
17 |
{ |
18 |
if (room == room_forest_starwalker && !instance_exists(obj_npc_room)) |
19 |
{ |
20 |
originalstarwalker = instance_create(2200, 200, obj_npc_room); |
21 |
if (x >= (room_width / 2)) |
22 |
{ |
23 |
with (originalstarwalker) |
24 |
x = 400; |
25 |
} |
26 |
} |
27 |
with (obj_starwalker_overworld) |
28 |
{ |
29 |
visible = 0; |
30 |
beatcon = 1; |
31 |
beattimer = 0; |
32 |
with (obj_mainchara) |
33 |
battlemode = 0; |
34 |
dead = instance_create(x - 92, y - 74, obj_starwalker_battle); |
35 |
with (dead) |
36 |
{ |
37 |
walkcon = 1; |
38 |
walktimer = 0; |
39 |
} |
40 |
with (shadow) |
41 |
instance_destroy(); |
42 |
} |
43 |
} |
44 |
} |
45 |
} |