1 | timer += 1; |
2 | draw_sprite(spr_steamer_bottom, 0, x, y); |
3 | draw_sprite(spr_steamer_top, 0, x, y + (f_l * 3)); |
4 | if (timer == 30) |
5 | { |
6 | f_l = 0; |
7 | f_d = 1; |
8 | } |
9 | if (timer > 30 && timer < 50) |
10 | { |
11 | f_l += 0.2; |
12 | if (f_l >= 1) |
13 | timer = 50; |
14 | } |
15 | if (timer >= 50 && timer < 70) |
16 | f_l = 1 - (sin(timer * 1.5) * 0.1); |
17 | if (timer >= 70) |
18 | { |
19 | f_l -= 0.2; |
20 | if (f_l <= 0) |
21 | { |
22 | f_l = 0; |
23 | f_d = 0; |
24 | timer = 0; |
25 | } |
26 | } |
27 | if (f_d == 1) |
28 | draw_sprite_ext(spr_bluejet, 0, x + 7, y + 8 + (f_l * 3), 0.5 + (f_l / 2), f_l, 0, c_white, f_l); |