1 |
if (!instance_exists(obj_feisty_four_moray_legs)) |
2 |
{ |
3 |
instance_destroy() |
4 |
return; |
5 |
} |
6 |
var enemy_dead = global.enemy_dead |
7 |
var enemy_spared = global.enemy_spared |
8 |
var enemy_mode = global.enemy_mode |
9 |
if (enemy_dead == true) |
10 |
{ |
11 |
instance_destroy() |
12 |
return; |
13 |
} |
14 |
else if (enemy_spared == true) |
15 |
{ |
16 |
instance_destroy() |
17 |
return; |
18 |
} |
19 |
if (damage_disjoint_count > 0) |
20 |
damage_disjoint_count -= 1 |
21 |
else if (enemy_dead == false && enemy_spared == false) |
22 |
{ |
23 |
if (global.current_hp_enemy <= 0) |
24 |
sprite_index = spr_feisty_four_moray_hand_left |
25 |
else |
26 |
sprite_index = spr_feisty_four_moray_hand_left |
27 |
} |
28 |
if (instance_exists(obj_text_damage_count) && global.fight_number == 1 && no_loop_damage_disjoint_count == false) |
29 |
{ |
30 |
damage_disjoint_count = 12 |
31 |
no_loop_damage_disjoint_count = true |
32 |
} |
33 |
else if (!instance_exists(obj_text_damage_count)) |
34 |
no_loop_damage_disjoint_count = false |
35 |
if (damage_disjoint_count == 12) |
36 |
damage_disjoint_x = -50 |
37 |
else if (damage_disjoint_count == 10) |
38 |
damage_disjoint_x = 50 |
39 |
else if (damage_disjoint_count == 8) |
40 |
damage_disjoint_x = -20 |
41 |
else if (damage_disjoint_count == 6) |
42 |
damage_disjoint_x = 20 |
43 |
else if (damage_disjoint_count == 4) |
44 |
damage_disjoint_x = -10 |
45 |
else if (damage_disjoint_count == 2) |
46 |
damage_disjoint_x = 10 |
47 |
else if (damage_disjoint_count == 0) |
48 |
damage_disjoint_x = 0 |
49 |
if (damage_disjoint_count > 0) |
50 |
image_alpha = 0 |
51 |
if (obj_feisty_four_moray_legs.animating == true) |
52 |
{ |
53 |
x = obj_feisty_four_moray_legs.x - difference_x |
54 |
y = obj_feisty_four_moray_legs.hand_left_displacement_y |
55 |
} |
56 |
else |
57 |
{ |
58 |
x = obj_feisty_four_moray_legs.x - difference_x |
59 |
y = obj_feisty_four_moray_legs.y - difference_y |
60 |
} |