| 1 |
if (live_call()) |
| 2 |
return global.live_result; |
| 3 |
if (global.current_hp_enemy <= 0) |
| 4 |
{ |
| 5 |
if (!death_sprite) |
| 6 |
death_sprite = true; |
| 7 |
} |
| 8 |
if (death_sprite == true && sprite_index != spr_axis_body_nocharge && sprite_index != spr_axis_body_nocharge_melancholy) |
| 9 |
{ |
| 10 |
sprite_index = spr_axis_body_nocharge_melancholy; |
| 11 |
image_index = 0; |
| 12 |
alarm[0] = 45; |
| 13 |
} |
| 14 |
if (global.enemy_dead == false && global.enemy_spared == false) |
| 15 |
image_alpha = global.image_alpha_enemy_attacking; |
| 16 |
if (damage_disjoint_count > 0) |
| 17 |
damage_disjoint_count -= 1; |
| 18 |
if ((instance_exists(obj_text_damage_count) && global.fight_number == 1) && no_loop_damage_disjoint_count == false) |
| 19 |
{ |
| 20 |
if (sprite_index != spr_axis_body_nocharge && sprite_index != spr_axis_body_nocharge_melancholy) |
| 21 |
{ |
| 22 |
sprite_index = spr_axis_body_geno_lid_block; |
| 23 |
} |
| 24 |
else |
| 25 |
{ |
| 26 |
damage_disjoint_count = 12; |
| 27 |
no_loop_damage_disjoint_count = true; |
| 28 |
} |
| 29 |
} |
| 30 |
else if (!instance_exists(obj_text_damage_count)) |
| 31 |
{ |
| 32 |
no_loop_damage_disjoint_count = false; |
| 33 |
if (sprite_index == spr_axis_body_geno_lid_block) |
| 34 |
sprite_index = spr_axis_body_geno_lid; |
| 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 |
x = starting_point_x + damage_disjoint_x; |