| 1 |
if (live_call()) |
| 2 |
return global.live_result; |
| 3 |
var battle_box = 3154; |
| 4 |
if (image_alpha < 0.99) |
| 5 |
image_alpha = lerp(image_alpha, 1, 0.25); |
| 6 |
else |
| 7 |
image_alpha = 1; |
| 8 |
if (obj_heart_battle_fighting_axis.movement_mode == 1) |
| 9 |
{ |
| 10 |
if ((bbox_left + lengthdir_x(speed, direction)) <= (obj_dialogue_box_battle_transformation_any.bbox_left - 4)) |
| 11 |
{ |
| 12 |
if (direction > 180) |
| 13 |
direction = 325; |
| 14 |
else |
| 15 |
direction = 45; |
| 16 |
} |
| 17 |
else if ((bbox_right + lengthdir_x(speed, direction)) >= (obj_dialogue_box_battle_transformation_any.bbox_right + 4)) |
| 18 |
{ |
| 19 |
if (direction > 180) |
| 20 |
direction = 225; |
| 21 |
else |
| 22 |
direction = 135; |
| 23 |
} |
| 24 |
} |
| 25 |
if (place_meeting(x, y, obj_battle_enemy_attack_axis_shield)) |
| 26 |
{ |
| 27 |
if (instance_exists(obj_battlebox_controller_axis)) |
| 28 |
obj_battlebox_controller_axis.axis_trash_meter = clamp(obj_battlebox_controller_axis.axis_trash_meter + 10, 0, 100); |
| 29 |
obj_battle_enemy_attack_axis_shield.shield_hit = true; |
| 30 |
var shield = 511; |
| 31 |
instance_create_depth(shield.x + lengthdir_x(6, shield.direction), shield.y + lengthdir_y(6, shield.direction), depth, obj_battle_enemy_attack_axis_energy_ball_boss_destroy_effect); |
| 32 |
instance_destroy(); |
| 33 |
} |
| 34 |
var hurt_player = false; |
| 35 |
if (obj_heart_battle_fighting_axis.movement_mode == 1) |
| 36 |
{ |
| 37 |
if (bbox_bottom >= battle_box.bbox_bottom) |
| 38 |
hurt_player = true; |
| 39 |
} |
| 40 |
else if (collision_rectangle(battle_box.x - 5, battle_box.y - 5, battle_box.x + 5, battle_box.y + 5, id, false, false)) |
| 41 |
{ |
| 42 |
hurt_player = true; |
| 43 |
} |
| 44 |
if (hurt_player) |
| 45 |
{ |
| 46 |
instance_destroy(self, false); |
| 47 |
instance_create_depth(320, 320, -100, obj_battle_enemy_attack_axis_energy_ball_explosion); |
| 48 |
} |