1 |
function scr_cutscene_battle_macro_1scr_cutscene_battle_macro_1function scr_cutscene_battle_macro_1() //gml_Script_scr_cutscene_battle_macro_1
{
if live_call()
return global.live_result;
switch scene
{
case 0:
cutscene_wait(0.5)
break
case 1:
instance_create_depth(320, 110, 100, obj_macro_froggit_body)
instance_create_depth(320, 122, 99, obj_macro_froggit_head)
scr_audio_fade_out(mus_funsized_yellow, 1500)
obj_micro_froggit.can_jump = false
audio_play_sound(snd_encounter, 1, 0)
var cutscene_ex = instance_create_depth(obj_micro_froggit.x, (obj_micro_froggit.y - 25), -200, obj_cutscene_ex)
cutscene_ex.image_xscale = 2
cutscene_ex.image_yscale = 2
cutscene_advance()
break
case 2:
cutscene_wait(1)
break
case 3:
instance_destroy(obj_cutscene_ex)
draw_enabled = true
cutscene_wait(2.5)
break
case 4:
draw_enabled = false
cutscene_wait(1)
break
case 5:
with (obj_micro_froggit)
{
if (path_position == 0 || floor(path_position) == 1)
{
var froggit_jump = audio_play_sound(snd_playerjump, 1, 0)
audio_sound_pitch(froggit_jump, 0.5)
path_start(pt_micro_froggit_run, 6, path_action_stop, false)
}
if (x > 640)
{
instance_destroy()
other.scene++
}
}
break
case 6:
cutscene_wait(2)
break
case 7:
instance_create_depth(0, 0, (obj_macro_froggit_body.depth + 10), obj_macro_froggit_particle)
burst_count = 3
cutscene_advance()
break
case 8:
case 10:
case 12:
obj_macro_froggit_particle.particle_burst = true
if (scene == 12)
burst_count--
cutscene_advance()
break
case 9:
case 11:
cutscene_wait(0.1)
break
case 13:
if (burst_count > 0)
{
if cutscene_wait(1.5)
cutscene_advance(8)
}
else
cutscene_advance()
break
case 14:
cutscene_wait(3)
break
case 15:
instance_destroy(obj_macro_froggit_particle)
obj_macro_froggit_body.draw_silhouette_alpha -= 0.05
obj_background_macro_froggit.draw_alpha = 1 - obj_macro_froggit_body.draw_silhouette_alpha
if (obj_macro_froggit_body.draw_silhouette_alpha <= 0)
{
obj_macro_froggit_body.draw_silhouette_alpha = 0
obj_background_macro_froggit.draw_alpha = 1
cutscene_advance()
}
break
case 16:
cutscene_wait(1)
break
case 17:
if (!instance_exists(obj_quote_bubble_battle_yellow_2))
{
with (obj_quote_bubble_battle)
instance_destroy()
instance_create(402, 68, obj_quote_bubble_battle_yellow_2)
}
... () //gml_Script_scr_cutscene_battle_macro_1 |
2 |
{ |
3 |
if live_call() |
4 |
return global.live_result; |
5 |
switch scene |
6 |
{ |
7 |
case 0: |
8 |
cutscene_wait(0.5) |
9 |
break |
10 |
case 1: |
11 |
instance_create_depth(320, 110, 100, obj_macro_froggit_body) |
12 |
instance_create_depth(320, 122, 99, obj_macro_froggit_head) |
13 |
scr_audio_fade_outscr_audio_fade_outfunction scr_audio_fade_out(argument0, argument1) //gml_Script_scr_audio_fade_out
{
var snd = argument0
var fade_len = argument1
if (!audio_is_playing(snd))
return false;
audio_sound_gain(snd, 0, fade_len)
if instance_exists(obj_audio_fade_helper)
{
with (obj_audio_fade_helper)
{
if (audio_to_fade == snd)
return false;
}
}
with (instance_create(0, 0, obj_audio_fade_helper))
audio_to_fade = snd
} (mus_funsized_yellow, 1500) |
14 |
obj_micro_froggit.can_jump = false |
15 |
audio_play_sound(snd_encounter, 1, 0) |
16 |
var cutscene_ex = instance_create_depth(obj_micro_froggit.x, (obj_micro_froggit.y - 25), -200, obj_cutscene_ex) |
17 |
cutscene_ex.image_xscale = 2 |
18 |
cutscene_ex.image_yscale = 2 |
19 |
cutscene_advance() |
20 |
break |
21 |
case 2: |
22 |
cutscene_wait(1) |
23 |
break |
24 |
case 3: |
25 |
instance_destroy(obj_cutscene_ex) |
26 |
draw_enabled = true |
27 |
cutscene_wait(2.5) |
28 |
break |
29 |
case 4: |
30 |
draw_enabled = false |
31 |
cutscene_wait(1) |
32 |
break |
33 |
case 5: |
34 |
with (obj_micro_froggit) |
35 |
{ |
36 |
if (path_position == 0 || floor(path_position) == 1) |
37 |
{ |
38 |
var froggit_jump = audio_play_sound(snd_playerjump, 1, 0) |
39 |
audio_sound_pitch(froggit_jump, 0.5) |
40 |
path_start(pt_micro_froggit_run, 6, path_action_stop, false) |
41 |
} |
42 |
if (x > 640) |
43 |
{ |
44 |
instance_destroy() |
45 |
other.scene++ |
46 |
} |
47 |
} |
48 |
break |
49 |
case 6: |
50 |
cutscene_wait(2) |
51 |
break |
52 |
case 7: |
53 |
instance_create_depth(0, 0, (obj_macro_froggit_body.depth + 10), obj_macro_froggit_particle) |
54 |
burst_count = 3 |
55 |
cutscene_advance() |
56 |
break |
57 |
case 8: |
58 |
case 10: |
59 |
case 12: |
60 |
obj_macro_froggit_particle.particle_burst = true |
61 |
if (scene == 12) |
62 |
burst_count-- |
63 |
cutscene_advance() |
64 |
break |
65 |
case 9: |
66 |
case 11: |
67 |
cutscene_wait(0.1) |
68 |
break |
69 |
case 13: |
70 |
if (burst_count > 0) |
71 |
{ |
72 |
if cutscene_wait(1.5) |
73 |
cutscene_advance(8) |
74 |
} |
75 |
else |
76 |
cutscene_advance() |
77 |
break |
78 |
case 14: |
79 |
cutscene_wait(3) |
80 |
break |
81 |
case 15: |
82 |
instance_destroy(obj_macro_froggit_particle) |
83 |
obj_macro_froggit_body.draw_silhouette_alpha -= 0.05 |
84 |
obj_background_macro_froggit.draw_alpha = 1 - obj_macro_froggit_body.draw_silhouette_alpha |
85 |
if (obj_macro_froggit_body.draw_silhouette_alpha <= 0) |
86 |
{ |
87 |
obj_macro_froggit_body.draw_silhouette_alpha = 0 |
88 |
obj_background_macro_froggit.draw_alpha = 1 |
89 |
cutscene_advance() |
90 |
} |
91 |
break |
92 |
case 16: |
93 |
cutscene_wait(1) |
94 |
break |
95 |
case 17: |
96 |
if (!instance_exists(obj_quote_bubble_battle_yellow_2)) |
97 |
{ |
98 |
with (obj_quote_bubble_battle) |
99 |
instance_destroy() |
100 |
instance_create(402, 68, obj_quote_bubble_battle_yellow_2) |
101 |
} |
102 |
draw_enabled = true |
103 |
cutscene_wait(2) |
104 |
break |
105 |
case 18: |
106 |
global.battle_music = audio_play_sound(mus_through_the_macro_lens, 20, true) |
107 |
instance_create_depth(0, 0, -100, obj_macro_frog_counter) |
108 |
with (obj_macro_froggit_head) |
109 |
path_start(pt_macro_froggit_head, 0.5, path_action_continue, 0) |
110 |
cutscene_advance() |
111 |
break |
112 |
case 19: |
113 |
with (obj_quote_bubble_battle) |
114 |
instance_destroy() |
115 |
instance_destroy() |
116 |
with (obj_dialogue_box_battle_transformation_any) |
117 |
event_user(0) |
118 |
break |
119 |
} |
120 |
|
121 |
} |