1 |
var enemy_dead = global.enemy_dead; |
2 |
var enemy_spared = global.enemy_spared; |
3 |
if (enemy_dead == false && enemy_spared == false) |
4 |
image_alpha = global.image_alpha_enemy_attacking; |
5 |
if (enemy_dead == true) |
6 |
{ |
7 |
instance_destroy(); |
8 |
exit; |
9 |
image_alpha = 0.5; |
10 |
} |
11 |
else if (enemy_spared == true) |
12 |
{ |
13 |
instance_destroy(); |
14 |
exit; |
15 |
} |
16 |
if (damage_disjoint_count > 0) |
17 |
damage_disjoint_count -= 1; |
18 |
else if (enemy_dead == false && enemy_spared == false && damage_disjoint_count <= 0) |
19 |
sprite_index = spr_bowll_leg_fore_behind; |
20 |
if (instance_exists(obj_text_damage_count) && global.fight_number == 1 && no_loop_damage_disjoint_count == false) |
21 |
{ |
22 |
damage_disjoint_count = 12; |
23 |
no_loop_damage_disjoint_count = true; |
24 |
} |
25 |
else if (!instance_exists(obj_text_damage_count)) |
26 |
{ |
27 |
no_loop_damage_disjoint_count = false; |
28 |
} |
29 |
if (damage_disjoint_count == 12) |
30 |
damage_disjoint_x = -50; |
31 |
else if (damage_disjoint_count == 10) |
32 |
damage_disjoint_x = 50; |
33 |
else if (damage_disjoint_count == 8) |
34 |
damage_disjoint_x = -20; |
35 |
else if (damage_disjoint_count == 6) |
36 |
damage_disjoint_x = 20; |
37 |
else if (damage_disjoint_count == 4) |
38 |
damage_disjoint_x = -10; |
39 |
else if (damage_disjoint_count == 2) |
40 |
damage_disjoint_x = 10; |
41 |
else if (damage_disjoint_count == 0) |
42 |
damage_disjoint_x = 0; |
43 |
if (damage_disjoint_count > 0 || global.current_hp_enemy <= 0) |
44 |
image_alpha = 0; |