1 | if (dont == 0) |
2 | { |
3 | if (active == 0) |
4 | { |
5 | draw_sprite_ext(sprite_index, 0, x, y, 3 - (image_alpha * 2), 3 - (image_alpha * 2), 0, c_white, image_alpha); |
6 | if (image_alpha < 1) |
7 | { |
8 | image_alpha += 0.1; |
9 | if (type == 1) |
10 | { |
11 | vspeed = 3; |
12 | gravity = -0.5; |
13 | } |
14 | } |
15 | else |
16 | { |
17 | if (type == 0) |
18 | { |
19 | if ((obj_heart.y + 8) < y) |
20 | { |
21 | vspeed = 1; |
22 | gravity = -0.2; |
23 | } |
24 | else |
25 | { |
26 | vspeed = -2; |
27 | gravity = 1; |
28 | } |
29 | } |
30 | active = 1; |
31 | } |
32 | } |
33 | draw_sprite_ext(sprite_index, 0, x, y, 2 - image_alpha, 2 - image_alpha, 0, c_white, image_alpha); |
34 | if (type == 0) |
35 | { |
36 | if (speed > 8) |
37 | speed = 8; |
38 | } |
39 | if (y > (__view_get(e__VW.YView, 0) + 500)) |
40 | instance_destroy(); |
41 | if (y < (__view_get(e__VW.YView, 0) - 20)) |
42 | instance_destroy(); |
43 | } |
44 | dont = 0; |
45 | |
46 | enum e__VW |
47 | { |
48 | XView, |
49 | YView, |
50 | WView, |
51 | HView, |
52 | Angle, |
53 | HBorder, |
54 | VBorder, |
55 | HSpeed, |
56 | VSpeed, |
57 | Object, |
58 | Visible, |
59 | XPort, |
60 | YPort, |
61 | WPort, |
62 | HPort, |
63 | Camera, |
64 | SurfaceID |
65 | } |