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_heroralsei.y; |
11 | sprite_index = spr_ralseib_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_heroralsei.x - 10)) |
21 | { |
22 | if (collided == 0) |
23 | { |
24 | global.msg[0] = |
25 | scr_battletext_default |
26 | } |
27 | with (obj_heroralsei) |
28 | visible = 1; |
29 | with (obj_herosusie) |
30 | visible = 1; |
31 | with (obj_checkers_enemy) |
32 | { |
33 | actcon = 1; |
34 | visible = 1; |
35 | } |
36 | with (obj_throwtarget) |
37 | instance_destroy(); |
38 | with (obj_throwralsei) |
39 | instance_destroy(); |
40 | instance_destroy(); |
41 | } |
42 | } |
43 | if (con == 2) |
44 | { |
45 | if (x < (xx - 40) || y > (yy + 520)) |
46 | { |
47 | timer = 0; |
48 | gravity = 0; |
49 | speed = 0; |
50 | x = xx - 40; |
51 | y = obj_heroralsei.y; |
52 | sprite_index = spr_ralseib_idle; |
53 | image_angle = 0; |
54 | hspeed = 20; |
55 | con = 10; |
56 | } |
57 | } |