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 (spin_speed < spin_speed_max) |
12 |
{ |
13 |
spin_speed += spin_speed_increase |
14 |
if (spin_speed > spin_speed_max) |
15 |
spin_speed = spin_speed_max |
16 |
} |
17 |
if (move_random_number == 0) |
18 |
image_angle += round(spin_speed / spin_speed_divider) |
19 |
else |
20 |
image_angle -= round(spin_speed / spin_speed_divider) |
21 |
if (image_angle > 360) |
22 |
image_angle -= 360 |
23 |
var move_steps = 1 + (floor(spin_speed / (spin_speed_max / 2))) |
24 |
for (i = 0; i < move_steps; i += 1) |
25 |
{ |
26 |
game_maker_cannot_do_math = power((time_elapsed / (time_max / 2 * (1 / sqrt(max_rise))) - sqrt(max_rise)), 2) |
27 |
animation_disjoint = sign_modifier * (max_rise - round(game_maker_cannot_do_math)) |
28 |
time_elapsed += time_increase |
29 |
if (time_elapsed >= time_max) |
30 |
{ |
31 |
time_elapsed = 0 |
32 |
sign_modifier = (-sign_modifier) |
33 |
} |
34 |
if (move_random_number == 0) |
35 |
x = draw_position_x + animation_disjoint |
36 |
else |
37 |
x = draw_position_x - animation_disjoint |
38 |
y = draw_position_y + animation_disjoint |
39 |
} |
40 |
} |
41 |
with (obj_battle_enemy_attack_dalv_lightning_shift_second) |
42 |
event_user(0) |