1 |
if (live_call()) |
2 |
return global.live_result; |
3 |
image_alpha += 0.2; |
4 |
var battle_box = 3154; |
5 |
if (bbox_bottom >= battle_box.bbox_bottom && !bounce_noloop) |
6 |
{ |
7 |
audio_play_sound(choose(snd_mart_impact_1, snd_mart_impact_2, snd_mart_impact_3), 1, 0); |
8 |
audio_play_sound(snd_ceroba_attack_bell_ring, 1, 0); |
9 |
vspeed = -bounce_speed; |
10 |
bounce_noloop = 1; |
11 |
image_angle_rot = sign(hspeed) * -image_angle_rot_max; |
12 |
} |
13 |
if (bounce_noloop == 1) |
14 |
{ |
15 |
if (vspeed >= 0) |
16 |
{ |
17 |
hspeed = 0; |
18 |
gravity = 0; |
19 |
vspeed = 0; |
20 |
image_angle_rot = 0; |
21 |
image_index = 0; |
22 |
sprite_index = spr_ceroba_attack_bell_explosion; |
23 |
audio_play_sound(snd_ceroba_attack_bell_explode, 1, 0); |
24 |
bounce_noloop = 2; |
25 |
} |
26 |
} |
27 |
image_angle_rot = lerp(image_angle_rot, 0, 0.1); |
28 |
image_angle += image_angle_rot; |