| 1 |
x += x_speed; |
| 2 |
if (x_speed > 0) |
| 3 |
{ |
| 4 |
if (bbox_left > obj_dialogue_box_battle_transformation_any.bbox_right) |
| 5 |
{ |
| 6 |
instance_destroy(); |
| 7 |
exit; |
| 8 |
} |
| 9 |
} |
| 10 |
else if (bbox_right < obj_dialogue_box_battle_transformation_any.bbox_left) |
| 11 |
{ |
| 12 |
instance_destroy(); |
| 13 |
exit; |
| 14 |
} |
| 15 |
if (image_index != 0) |
| 16 |
{ |
| 17 |
bounce_sound_can_check = true; |
| 18 |
} |
| 19 |
else if (bounce_sound_can_check == true) |
| 20 |
{ |
| 21 |
bounce_sound_execute = true; |
| 22 |
bounce_sound_can_check = false; |
| 23 |
} |
| 24 |
if (bounce_sound_execute == true) |
| 25 |
{ |
| 26 |
var random_pitch = irandom_range(-1, 1); |
| 27 |
audio_play_sound(snd_trihecta_small_ball_bounce, 20, 0); |
| 28 |
audio_sound_pitch(snd_trihecta_small_ball_bounce, 1 + (random_pitch * 0.3)); |
| 29 |
bounce_sound_execute = false; |
| 30 |
} |