1 |
if live_call() |
2 |
return global.live_result; |
3 |
switch scene |
4 |
{ |
5 |
case 0: |
6 |
instance_create_depth(320, 320, (obj_heart_battle_fighting_parent.depth - 1), obj_attack_guardener_laser_warning) |
7 |
cutscene_advance() |
8 |
break |
9 |
case 1: |
10 |
if (image_alpha < 1) |
11 |
image_alpha += 0.2 |
12 |
else |
13 |
cutscene_advance() |
14 |
break |
15 |
case 2: |
16 |
var y_target = obj_dialogue_box_battle_transformation_any.y |
17 |
if (abs(y - y_target) > 1) |
18 |
y = lerp(y, y_target, 0.1) |
19 |
else |
20 |
{ |
21 |
y = obj_dialogue_box_battle_transformation_any.y |
22 |
cutscene_advance() |
23 |
} |
24 |
break |
25 |
case 3: |
26 |
if (warning_line_alpha < 0.96) |
27 |
warning_line_alpha = lerp(warning_line_alpha, 1, 0.1) |
28 |
else |
29 |
{ |
30 |
cutscene_advance() |
31 |
warning_line_alpha = 1 |
32 |
} |
33 |
break |
34 |
case 4: |
35 |
for (var i = 0; i < 8; i++) |
36 |
{ |
37 |
var new_dir = image_angle + i * 45 |
38 |
var xx = x |
39 |
var yy = y |
40 |
var new_laser = instance_create_depth(xx, yy, (obj_heart_battle_fighting_parent.depth - 1), obj_battle_enemy_attack_guardener_laser) |
41 |
new_laser.direction = new_dir |
42 |
} |
43 |
warning_line_alpha = 0 |
44 |
audio_play_sound(snd_guardener_laser_shoot, 1, 0) |
45 |
audio_play_sound(snd_guardener_laser_shoot_loop, 1, 1) |
46 |
cutscene_advance() |
47 |
break |
48 |
case 5: |
49 |
var turn_speed_inc = 0.25 |
50 |
if (turn_speed < turn_speed_max) |
51 |
turn_speed += turn_speed_inc |
52 |
else |
53 |
cutscene_advance() |
54 |
break |
55 |
case 6: |
56 |
if cutscene_wait(3) |
57 |
audio_play_sound(snd_bullet_warning, 1, 0) |
58 |
break |
59 |
case 7: |
60 |
turn_speed_inc = 0.25 |
61 |
if (turn_speed > (-turn_speed_max)) |
62 |
turn_speed -= turn_speed_inc |
63 |
else |
64 |
cutscene_advance() |
65 |
break |
66 |
case 8: |
67 |
cutscene_wait(3) |
68 |
break |
69 |
case 9: |
70 |
instance_destroy() |
71 |
break |
72 |
} |
73 |
|
74 |
image_angle += turn_speed |