1 |
if (live_call()) |
2 |
return global.live_result; |
3 |
var battle_box = 3154; |
4 |
if (image_alpha < 1) |
5 |
{ |
6 |
image_alpha += 0.1; |
7 |
} |
8 |
else if (noloop == false) |
9 |
{ |
10 |
gravity = 0.8; |
11 |
vspeed = -14; |
12 |
hspeed = 3; |
13 |
if (x > 320) |
14 |
hspeed *= -1; |
15 |
noloop = true; |
16 |
} |
17 |
var hurt_player = false; |
18 |
if (noloop == true) |
19 |
{ |
20 |
if (place_meeting(x, y, obj_battle_enemy_attack_axis_shield)) |
21 |
{ |
22 |
if (instance_exists(obj_battlebox_controller_axis)) |
23 |
obj_battlebox_controller_axis.axis_trash_meter = clamp(obj_battlebox_controller_axis.axis_trash_meter + 10, 0, 100); |
24 |
obj_battle_enemy_attack_axis_shield.shield_hit = true; |
25 |
var shield = 511; |
26 |
y = shield.bbox_top - 5; |
27 |
vspeed = -10; |
28 |
destroy_check = true; |
29 |
} |
30 |
hurt_player = false; |
31 |
if (obj_heart_battle_fighting_axis.movement_mode == 1) |
32 |
{ |
33 |
if (bbox_bottom >= battle_box.bbox_bottom && vspeed > 0) |
34 |
hurt_player = true; |
35 |
} |
36 |
else if (collision_rectangle(battle_box.x - 5, battle_box.y - 5, battle_box.x + 5, battle_box.y + 5, id, false, false)) |
37 |
{ |
38 |
hurt_player = true; |
39 |
} |
40 |
} |
41 |
if (hurt_player) |
42 |
{ |
43 |
instance_destroy(self, false); |
44 |
instance_create_depth(320, 320, -100, obj_battle_enemy_attack_axis_energy_ball_explosion); |
45 |
} |
46 |
if (destroy_check == true && vspeed > 0) |
47 |
instance_destroy(); |