1 | if (image_alpha < 1) |
2 | { |
3 | image_alpha += 0.2 |
4 | if (image_alpha >= 1) |
5 | { |
6 | image_alpha = 1 |
7 | if (can_jump == false) |
8 | { |
9 | vspeed = -8 |
10 | hspeed = hsp |
11 | gravity = 0.5 |
12 | can_jump = true |
13 | } |
14 | } |
15 | } |
16 | if (vspeed > 8) |
17 | vspeed = 8 |
18 | if ((bbox_bottom + vspeed) >= (obj_dialogue_box_battle_transformation_any.bbox_bottom - 8)) |
19 | { |
20 | if (bounce_count > 0) |
21 | { |
22 | bounce_count -= 1 |
23 | vspeed = (-vspeed) * 0.5 |
24 | hspeed *= 0.5 |
25 | } |
26 | else |
27 | { |
28 | hspeed = 0 |
29 | vspeed = 0 |
30 | gravity = 0 |
31 | } |
32 | } |