1 | if (state == 1) |
2 | { |
3 | if (vspeed == 0) |
4 | vspeed = -4 |
5 | if (bbox_bottom < 120) |
6 | { |
7 | state = 2 |
8 | vspeed = 0 |
9 | depth = 1000006 |
10 | } |
11 | } |
12 | if (state == 2) |
13 | { |
14 | vspeed += 0.25 |
15 | if (bbox_top > 180) |
16 | { |
17 | instance_destroy() |
18 | instance_destroy(obj_steamworks_mo_flame) |
19 | return; |
20 | } |
21 | } |
22 | if (state > 0) |
23 | { |
24 | if instance_exists(obj_steamworks_mo_flame) |
25 | { |
26 | obj_steamworks_mo_flame.vspeed = vspeed |
27 | obj_steamworks_mo_flame.depth = depth - 1 |
28 | } |
29 | } |