var enemy_dead_2 = global.enemy_dead_2 var enemy_spared_2 = global.enemy_spared_2 if (enemy_dead_2 == false && enemy_spared_2 == false) image_alpha = global.image_alpha_enemy_attacking if (enemy_dead_2 == true) { x = starting_point_x y = starting_point_y image_xscale = starting_point_xscale image_yscale = starting_point_yscale instance_create(starting_point_x, starting_point_y, obj_sweet_corn_dead) instance_destroy() return; } else if (enemy_spared_2 == true) { sprite_index = spr_sweet_corn_spared x = starting_point_x y = starting_point_y image_xscale = starting_point_xscale image_yscale = starting_point_yscale image_alpha = 0.5 } if (damage_disjoint_count > 0) damage_disjoint_count -= 1 else if (enemy_dead_2 == false && enemy_spared_2 == false) { if (global.enemy_low_hp_2 == true && global.current_hp_enemy_2 < global.max_hp_enemy_2) sprite_index = spr_sweet_corn_husk_critical else sprite_index = spr_sweet_corn_husk } if (instance_exists(obj_text_damage_count) && global.fight_number == 2 && no_loop_damage_disjoint_count == false) { time_elapsed = 11 sign_modifier = -1 damage_disjoint_count = 12 no_loop_damage_disjoint_count = true } else if (!instance_exists(obj_text_damage_count)) no_loop_damage_disjoint_count = false if (damage_disjoint_count == 12) damage_disjoint_x = -50 else if (damage_disjoint_count == 10) damage_disjoint_x = 50 else if (damage_disjoint_count == 8) damage_disjoint_x = -20 else if (damage_disjoint_count == 6) damage_disjoint_x = 20 else if (damage_disjoint_count == 4) damage_disjoint_x = -10 else if (damage_disjoint_count == 2) damage_disjoint_x = 10 else if (damage_disjoint_count == 0) damage_disjoint_x = 0 if (damage_disjoint_count > 0 || global.current_hp_enemy_2 <= 0) sprite_index = spr_sweet_corn_dead x = draw_position_x + damage_disjoint_x y = draw_position_y + damage_disjoint_y image_xscale = starting_point_xscale image_yscale = starting_point_yscale if ((!((instance_exists(obj_text_damage_count) && global.fight_number == 2))) && enemy_dead_2 == false && enemy_spared_2 == false) { game_maker_cannot_do_math = power((time_elapsed / (time_max / 2 * (1 / sqrt(max_rise))) - sqrt(max_rise)), 2) animation_disjoint = sign_modifier * (max_rise - round(game_maker_cannot_do_math)) time_elapsed += time_increase if (time_elapsed >= time_max) time_elapsed = 0 image_xscale = starting_point_xscale + animation_disjoint / image_alpha_divider image_yscale = 1 / image_xscale }