1 |
if (image_alpha < 1 && move == false) |
2 |
{ |
3 |
image_alpha += 0.1 |
4 |
if (image_alpha > 1) |
5 |
image_alpha = 1 |
6 |
if (image_alpha == 1) |
7 |
alarm[0] = 20 |
8 |
} |
9 |
if (move == true) |
10 |
{ |
11 |
if (move_speed < move_speed_max) |
12 |
{ |
13 |
move_speed += move_speed_increase |
14 |
if (move_speed > move_speed_max) |
15 |
move_speed = move_speed_max |
16 |
} |
17 |
var move_steps = 1 + (floor(move_speed / (move_speed_max / 2))) |
18 |
for (i = 0; i < move_steps; i += 1) |
19 |
{ |
20 |
game_maker_cannot_do_math = power((time_elapsed / (time_max / 2 * (1 / sqrt(max_rise))) - sqrt(max_rise)), 2) |
21 |
animation_disjoint_y = sign_modifier * (max_rise - round(game_maker_cannot_do_math)) |
22 |
time_elapsed += time_increase |
23 |
if (time_elapsed >= time_max) |
24 |
{ |
25 |
time_elapsed = 0 |
26 |
sign_modifier = (-sign_modifier) |
27 |
} |
28 |
y = draw_position_y + animation_disjoint_y |
29 |
} |
30 |
} |
31 |
with (obj_battle_enemy_attack_dalv_lightning_shift_second) |
32 |
event_user(0) |