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 = -4; |
10 | hspeed = hsp; |
11 | gravity = 0.5; |
12 | can_jump = true; |
13 | } |
14 | } |
15 | } |
16 | if (vspeed > 5) |
17 | vspeed = 5; |
18 | if (bbox_bottom >= (obj_dialogue_box_battle_transformation_any.bbox_bottom - 3)) |
19 | { |
20 | if (bounce_count > 0) |
21 | { |
22 | bounce_count -= 1; |
23 | vspeed = -6; |
24 | hspeed *= 0.35; |
25 | alarm[0] = 1; |
26 | } |
27 | } |
28 | image_angle += (3 * sign(320 - x)); |