| 1 | if (image_alpha < 1) |
| 2 | { |
| 3 | image_alpha += 0.2; |
| 4 | if (image_alpha >= 1) |
| 5 | { |
| 6 | image_alpha = 1; |
| 7 | if (can_jump == false) |
| 8 | { |
| 9 | vspeed = -4; |
| 10 | hspeed = hsp; |
| 11 | gravity = 0.5; |
| 12 | can_jump = true; |
| 13 | } |
| 14 | } |
| 15 | } |
| 16 | if (vspeed > 5) |
| 17 | vspeed = 5; |
| 18 | image_angle += (3 * sign(320 - x)); |