| 1 |
if (live_call()) |
| 2 |
return global.live_result; |
| 3 |
if (counter_shake == 1) |
| 4 |
{ |
| 5 |
shake_intensity += 0.005; |
| 6 |
draw_x_offset = random_range(-shake_intensity, shake_intensity); |
| 7 |
draw_y_offset = random_range(-shake_intensity, shake_intensity); |
| 8 |
exit; |
| 9 |
} |
| 10 |
else if (counter_shake == 2) |
| 11 |
{ |
| 12 |
frog_overlay_alpha = 1; |
| 13 |
frog_scale = 2; |
| 14 |
audio_play_sound(snd_undertale_flash, 1, 0); |
| 15 |
counter_shake = 0; |
| 16 |
} |
| 17 |
frog_overlay_alpha = lerp(frog_overlay_alpha, 0, 0.15); |
| 18 |
frog_scale = lerp(frog_scale, 1, 0.15); |
| 19 |
if (frog_scale < 1.05) |
| 20 |
frog_scale = 1; |
| 21 |
if (frog_overlay_alpha < 0.05) |
| 22 |
frog_overlay_alpha = 0; |
| 23 |
if (draw_x_offset > 0.01) |
| 24 |
draw_x_offset = lerp(draw_x_offset, 0, 0.15); |
| 25 |
else |
| 26 |
draw_x_offset = 0; |
| 27 |
draw_y_offset = 0; |