1 | if (con == 0 || con == 2) |
2 | image_angle = direction; |
3 | if (x > (xx + 700) || y < (yy - 40)) |
4 | { |
5 | if (con == 0) |
6 | { |
7 | gravity = 0; |
8 | speed = 0; |
9 | x = xx - 40; |
10 | y = obj_herokris.y; |
11 | sprite_index = spr_krisb_idle; |
12 | image_angle = 0; |
13 | hspeed = 20; |
14 | con = 10; |
15 | } |
16 | } |
17 | if (con == 10) |
18 | { |
19 | timer += 1; |
20 | if (x >= (obj_herokris.x - 10)) |
21 | { |
22 | if (collided == 0) |
23 | { |
24 | global.msg[0] = stringsetloc( |
25 | scr_battletext_default |
26 | } |
27 | with (obj_herokris) |
28 | visible = 1; |
29 | with (obj_herosusie) |
30 | visible = 1; |
31 | visible = 0; |
32 | with (obj_werewire_throwtarget) |
33 | instance_destroy(); |
34 | with (obj_werewire_throwkris) |
35 | instance_destroy(); |
36 | con = 11; |
37 | } |
38 | } |
39 | if (con == 11 && !instance_exists(obj_writer)) |
40 | { |
41 | if (instance_exists(obj_werewire_enemy)) |
42 | { |
43 | with (obj_werewire_enemy) |
44 | { |
45 | if (acting == 3) |
46 | actcon = 15; |
47 | } |
48 | } |
49 | else if (instance_exists(obj_werewerewire_enemy)) |
50 | { |
51 | with (obj_werewerewire_enemy) |
52 | { |
53 | if (acting == 3) |
54 | actcon = 15; |
55 | } |
56 | } |
57 | instance_destroy(); |
58 | } |
59 | if (con == 2) |
60 | { |
61 | if (x < (xx - 40) || y > (yy + 520)) |
62 | { |
63 | timer = 0; |
64 | gravity = 0; |
65 | speed = 0; |
66 | x = xx - 40; |
67 | y = obj_herokris.y; |
68 | sprite_index = spr_krisb_idle; |
69 | image_angle = 0; |
70 | hspeed = 20; |
71 | con = 10; |
72 | } |
73 | } |