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 (hspeed < speed_target) |
13 | hspeed += 0.2 |
14 | else |
15 | hspeed = speed_target |
16 | } |
17 | else if (hspeed > 0) |
18 | hspeed -= 0.2 |
19 | else |
20 | hspeed = 0 |