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