1 | if (instance_exists(obj_heart_battle_fighting_parent)) |
2 | { |
3 | if (image_alpha < 1 && can_move == false) |
4 | { |
5 | image_alpha += 0.1; |
6 | if (image_alpha > 1) |
7 | image_alpha = 1; |
8 | if (image_alpha == 1) |
9 | can_move = true; |
10 | } |
11 | if (can_move == true) |
12 | { |
13 | x += hsp; |
14 | vsp += grav; |
15 | if (vsp > terminal_velocity) |
16 | vsp = terminal_velocity; |
17 | y += vsp; |
18 | if (bbox_top > __view_get(e__VW.HView, 0)) |
19 | instance_destroy(); |
20 | } |
21 | } |
22 | |
23 | enum e__VW |
24 | { |
25 | XView, |
26 | YView, |
27 | WView, |
28 | HView, |
29 | Angle, |
30 | HBorder, |
31 | VBorder, |
32 | HSpeed, |
33 | VSpeed, |
34 | Object, |
35 | Visible, |
36 | XPort, |
37 | YPort, |
38 | WPort, |
39 | HPort, |
40 | Camera, |
41 | SurfaceID |
42 | } |