1 |
if (live_call()) |
2 |
return global.live_result; |
3 |
var battle_box = 3154; |
4 |
image_index = arrow_dir / 90; |
5 |
if (place_meeting(x, y, obj_heart_battle_fighting_parent) && !is_active) |
6 |
{ |
7 |
is_active = true; |
8 |
audio_play_sound(snd_battle_item_eat, 1, 0); |
9 |
obj_heart_battle_fighting_parent.turn_angle_target = arrow_dir; |
10 |
} |
11 |
if (is_active == true) |
12 |
{ |
13 |
image_xscale += 0.25; |
14 |
image_yscale += 0.25; |
15 |
image_alpha -= 0.1; |
16 |
if (image_alpha <= 0) |
17 |
instance_destroy(); |
18 |
} |
19 |
else if (y > (battle_box.bbox_bottom + 10)) |
20 |
{ |
21 |
image_alpha -= 0.2; |
22 |
if (image_alpha <= 0) |
23 |
instance_destroy(); |
24 |
} |
25 |
else if (image_alpha < 1) |
26 |
{ |
27 |
image_alpha += 0.25; |
28 |
} |