1 |
if live_call() |
2 |
return global.live_result; |
3 |
if (fade_out == false && instance_exists(obj_battle_enemy_attack_parent)) |
4 |
{ |
5 |
with (obj_battle_enemy_attack_parent) |
6 |
{ |
7 |
image_alpha -= 0.3 |
8 |
if (image_alpha <= 0) |
9 |
instance_destroy() |
10 |
} |
11 |
} |
12 |
if (fade_out == false) |
13 |
{ |
14 |
camera_set_view_angle(view_camera[0], 0) |
15 |
camera_set_view_pos(view_camera[0], 0, 0) |
16 |
camera_set_view_pos(view_camera[0], irandom_range(-4, 4), irandom_range(-4, 4)) |
17 |
camera_set_view_angle(view_camera[0], irandom_range((-screenshake_power), screenshake_power)) |
18 |
if (white_overlay_alpha < 1) |
19 |
{ |
20 |
white_overlay_alpha += 0.02 |
21 |
screenshake_power += 0.25 |
22 |
} |
23 |
else |
24 |
{ |
25 |
camera_set_view_angle(view_camera[0], 0) |
26 |
camera_set_view_pos(view_camera[0], 0, 0) |
27 |
fade_out = true |
28 |
draw_glitches = false |
29 |
audio_stop_sound(glitch_sound) |
30 |
} |
31 |
} |
32 |
else if (white_overlay_alpha > 0) |
33 |
white_overlay_alpha -= 0.15 |
34 |
else |
35 |
instance_destroy() |