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 |
return; |
9 |
} |
10 |
else if (enemy_spared == true) |
11 |
{ |
12 |
instance_destroy() |
13 |
return; |
14 |
} |
15 |
if (damage_disjoint_count > 0) |
16 |
damage_disjoint_count -= 1 |
17 |
else if (enemy_dead == false && enemy_spared == false) |
18 |
{ |
19 |
if (global.enemy_low_hp == true && global.current_hp_enemy < global.max_hp_enemy) |
20 |
sprite_index = spr_crispy_scroll_hand_right_critical |
21 |
else |
22 |
sprite_index = spr_crispy_scroll_hand_right |
23 |
image_speed = 0.5 |
24 |
} |
25 |
if (instance_exists(obj_text_damage_count) && global.fight_number == 1 && no_loop_damage_disjoint_count == false) |
26 |
{ |
27 |
time_elapsed = 0 |
28 |
sign_modifier = -1 |
29 |
time_elapsed_angle = 0 |
30 |
sign_modifier_angle = 1 |
31 |
damage_disjoint_count = 12 |
32 |
no_loop_damage_disjoint_count = true |
33 |
} |
34 |
else if (!instance_exists(obj_text_damage_count)) |
35 |
no_loop_damage_disjoint_count = false |
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 || global.current_hp_enemy <= 0) |
51 |
image_alpha = 0 |