1 | if (image_alpha < 1) |
2 | { |
3 | image_alpha = lerp(image_alpha, 1, 0.1) |
4 | if (image_alpha >= 0.99) |
5 | image_alpha = 1 |
6 | } |
7 | if (speed > 0) |
8 | speed -= speed_dec |
9 | else |
10 | { |
11 | speed = 0 |
12 | x = round(x) |
13 | y = round(y) |
14 | } |