1 | if live_call() |
2 | return global.live_result; |
3 | if (image_alpha < 0.99) |
4 | { |
5 | image_alpha = lerp(image_alpha, 1, 0.25) |
6 | return; |
7 | } |
8 | else |
9 | image_alpha = 1 |
10 | if can_move |
11 | { |
12 | if (vspeed < speed_target) |
13 | vspeed += 0.2 |
14 | else |
15 | vspeed = speed_target |
16 | } |
17 | else if (vspeed > 0) |
18 | vspeed -= 0.2 |
19 | else |
20 | vspeed = 0 |