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