| 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 | { |
| 9 | speed -= speed_dec; |
| 10 | } |
| 11 | else |
| 12 | { |
| 13 | speed = 0; |
| 14 | x = round(x); |
| 15 | y = round(y); |
| 16 | } |