| 1 | if (live_call()) |
| 2 | return global.live_result; |
| 3 | if (!fade_out) |
| 4 | { |
| 5 | if (image_alpha < 1) |
| 6 | image_alpha += 0.1; |
| 7 | else if (!alarm[0]) |
| 8 | alarm[0] = 5; |
| 9 | } |
| 10 | else if (image_alpha > 0) |
| 11 | { |
| 12 | image_alpha -= 0.1; |
| 13 | } |
| 14 | else |
| 15 | { |
| 16 | instance_destroy(); |
| 17 | } |
| 18 | if ((vspeed > 0 && y > y_target) || (vspeed < 0 && y < y_target)) |
| 19 | fade_out = true; |
| 20 | image_xscale = lerp(image_xscale, 1, 0.15); |
| 21 | image_yscale = image_xscale; |