| 1 |
if (live_call()) |
| 2 |
return global.live_result; |
| 3 |
if (note_destroy == true) |
| 4 |
{ |
| 5 |
image_angle += (sign(hspeed + 0.1) * 15); |
| 6 |
image_alpha -= 0.1; |
| 7 |
if (image_alpha <= 0) |
| 8 |
instance_destroy(); |
| 9 |
exit; |
| 10 |
} |
| 11 |
if (image_alpha_val < 1) |
| 12 |
{ |
| 13 |
image_alpha_val += fade_in_speed; |
| 14 |
if (image_alpha_val > 1) |
| 15 |
image_alpha_val = 1; |
| 16 |
} |
| 17 |
y += note_speed; |
| 18 |
if (y >= end_boundary) |
| 19 |
{ |
| 20 |
var fail_sound = audio_play_sound(snd_fail, 1, 0); |
| 21 |
audio_sound_pitch(fail_sound, random_range(0.8, 1.3)); |
| 22 |
note_destroy = true; |
| 23 |
vspeed = -6; |
| 24 |
if (global.battle_enemy_name == "flowey") |
| 25 |
vspeed = -8; |
| 26 |
gravity = 0.25; |
| 27 |
if (x < (box.bbox_left + 30)) |
| 28 |
hspeed = -2; |
| 29 |
else if (x >= (box.bbox_left + 30) && x <= (box.bbox_left + 128)) |
| 30 |
hspeed = 0; |
| 31 |
else |
| 32 |
hspeed = 2; |
| 33 |
} |