1 |
if (fade_in == true) |
2 |
{ |
3 |
if (image_alpha < 1) |
4 |
{ |
5 |
image_alpha += 0.2 |
6 |
if (image_alpha >= 1) |
7 |
{ |
8 |
image_alpha = 1 |
9 |
fade_in = false |
10 |
} |
11 |
} |
12 |
} |
13 |
x += rolling_speed |
14 |
image_angle += rolling_speed_angle |
15 |
game_maker_cannot_do_math = power((time_elapsed / (time_max / 2 * (1 / sqrt(max_rise))) - sqrt(max_rise)), 2) |
16 |
animation_disjoint_y = sign_modifier * (max_rise - round(game_maker_cannot_do_math)) |
17 |
time_elapsed += time_increase |
18 |
if (time_elapsed >= time_max) |
19 |
{ |
20 |
time_elapsed = 0 |
21 |
max_rise = irandom_range(bheight_min, bheight_max) |
22 |
time_max = max_rise * bheight_ratio |
23 |
} |
24 |
y = default_y + animation_disjoint_y |
25 |
if place_meeting(x, y, obj_dialogue_box_battle_transformation_any) |
26 |
can_vanish = true |
27 |
if ((!(place_meeting(x, y, obj_dialogue_box_battle_transformation_any))) && can_vanish == true) |
28 |
{ |
29 |
fade_in = false |
30 |
if (image_alpha > 0) |
31 |
{ |
32 |
image_alpha -= 0.2 |
33 |
if (image_alpha < 0) |
34 |
image_alpha = 0 |
35 |
if (image_alpha == 0) |
36 |
instance_destroy() |
37 |
} |
38 |
} |