1 | draw_sprite_ext(sprite_index, image_index, x, y, 2, 2, 0, c_white, image_alpha); |
2 | if (con == 1) |
3 | sprite_index = spr_ua_hold; |
4 | if (con == 3) |
5 | { |
6 | snd_play(snd_noise); |
7 | sprite_index = spr_ua_lift1; |
8 | con = 4; |
9 | alarm[4] = 3; |
10 | } |
11 | if (con == 5) |
12 | { |
13 | sprite_index = spr_ua_lift2; |
14 | con = 6; |
15 | alarm[4] = 70; |
16 | } |
17 | if (con == 7) |
18 | { |
19 | sprite_index = spr_ua_lift1; |
20 | con = 8; |
21 | alarm[4] = 10; |
22 | } |
23 | if (con == 9) |
24 | { |
25 | snd_play(snd_arrow); |
26 | vspeed = -15; |
27 | gravity = 2; |
28 | sprite_index = spr_ua_lift2; |
29 | con = 10; |
30 | } |
31 | if (con == 10) |
32 | { |
33 | if (vspeed >= -12) |
34 | { |
35 | sprite_index = spr_ua_throw; |
36 | instance_create(x + 70, y + 30, obj_alphys_fly); |
37 | con = 11; |
38 | } |
39 | } |
40 | if (con == 11) |
41 | { |
42 | if (y > (ystart - 2)) |
43 | { |
44 | y = ystart; |
45 | gravity = 0; |
46 | vspeed = 0; |
47 | con = 12; |
48 | } |
49 | } |