1 |
function scr_cutscene_battle_martlet_final_introscr_cutscene_battle_martlet_final_introfunction scr_cutscene_battle_martlet_final_intro() //gml_Script_scr_cutscene_battle_martlet_final_intro
{
if live_call()
return global.live_result;
switch scene
{
case 0:
if (message_current == 12)
{
draw_enabled = false
scr_battle_box_resize_midfight(140, 140)
obj_dialogue_box_battle_transformation_any.depth = 50
cutscene_wait(1)
}
break
case 1:
draw_enabled = false
cutscene_wait(1.5)
break
case 2:
draw_enabled = true
skippable = true
cutscene_advance()
break
case 3:
if (message_current == 19)
{
draw_enabled = false
cutscene_advance()
}
break
case 4:
obj_martlet_final_body_intro.sprite_index = spr_martlet_final_intro_2
obj_martlet_final_body_intro.image_index = 0
obj_martlet_final_body_intro.image_speed = 1
cutscene_advance()
break
case 5:
if (obj_martlet_final_body_intro.sprite_index != spr_martlet_final_intro_2)
cutscene_advance()
break
case 6:
cutscene_wait(0.5)
break
case 7:
draw_enabled = true
if (message_current == 20)
{
draw_enabled = false
cutscene_advance()
}
break
case 8:
obj_martlet_final_body_intro.sprite_index = spr_martlet_final_intro_4
obj_martlet_final_body_intro.image_index = 0
obj_martlet_final_body_intro.image_speed = 1
cutscene_advance()
break
case 9:
if (obj_martlet_final_body_intro.image_index >= 62)
{
obj_martlet_final_body_intro.image_speed = 0
cutscene_advance()
}
break
case 10:
cutscene_wait(2)
break
case 11:
draw_enabled = true
if (message_current == 21)
{
draw_enabled = false
cutscene_advance()
}
break
case 12:
obj_martlet_final_body_intro.image_speed = 1
if (obj_martlet_final_body_intro.image_index >= 74)
{
obj_martlet_final_body_intro.image_speed = 0
cutscene_advance()
}
break
case 13:
draw_enabled = true
if (message_current == 23)
{
draw_enabled = false
cutscene_advance()
}
break
case 14:
obj_martlet_final_body_intro.image_speed = 1
if (obj_martlet_final_body_intro.image_index >= 80)
{
obj_martlet_final_body_intro.image_speed = 0
cutscene_advance()
}
break
case 15:
... () //gml_Script_scr_cutscene_battle_martlet_final_intro |
2 |
{ |
3 |
if live_call() |
4 |
return global.live_result; |
5 |
switch scene |
6 |
{ |
7 |
case 0: |
8 |
if (message_current == 12) |
9 |
{ |
10 |
draw_enabled = false |
11 |
scr_battle_box_resize_midfightscr_battle_box_resize_midfightfunction scr_battle_box_resize_midfight() //gml_Script_scr_battle_box_resize_midfight
{
if instance_exists(obj_dialogue_box_battle_transformation_any)
{
with (obj_dialogue_box_battle_transformation_any)
{
battle_box_resize_midfight = true
battle_box_target_xscale = argument[0] / sprite_get_width(sprite_index)
battle_box_target_yscale = argument[1] / sprite_get_height(sprite_index)
if (argument_count > 2)
{
battle_box_target_x = argument[2]
battle_box_target_y = argument[3]
}
if (abs(image_xscale - battle_box_target_xscale) < 0.01 && abs(image_yscale - battle_box_target_yscale) < 0.01 && abs(x - battle_box_target_x) < 0.1 && abs(y - battle_box_target_y) < 0.1)
{
var box = obj_dialogue_box_battle_transformation_any
global.attack_surface_width = box.sprite_width - 8
global.attack_surface_height = box.sprite_height - 8
global.attack_surface_x = box.x - global.attack_surface_width * 0.5
global.attack_surface_y = box.y - global.attack_surface_height * 0.5
if surface_exists(global.attack_surface)
global.attack_surface = surface_create(global.attack_surface_width, global.attack_surface_height)
return true;
}
}
}
else
return false;
} (140, 140) |
12 |
obj_dialogue_box_battle_transformation_any.depth = 50 |
13 |
cutscene_wait(1) |
14 |
} |
15 |
break |
16 |
case 1: |
17 |
draw_enabled = false |
18 |
cutscene_wait(1.5) |
19 |
break |
20 |
case 2: |
21 |
draw_enabled = true |
22 |
skippable = true |
23 |
cutscene_advance() |
24 |
break |
25 |
case 3: |
26 |
if (message_current == 19) |
27 |
{ |
28 |
draw_enabled = false |
29 |
cutscene_advance() |
30 |
} |
31 |
break |
32 |
case 4: |
33 |
obj_martlet_final_body_intro.sprite_index = spr_martlet_final_intro_2 |
34 |
obj_martlet_final_body_intro.image_index = 0 |
35 |
obj_martlet_final_body_intro.image_speed = 1 |
36 |
cutscene_advance() |
37 |
break |
38 |
case 5: |
39 |
if (obj_martlet_final_body_intro.sprite_index != spr_martlet_final_intro_2) |
40 |
cutscene_advance() |
41 |
break |
42 |
case 6: |
43 |
cutscene_wait(0.5) |
44 |
break |
45 |
case 7: |
46 |
draw_enabled = true |
47 |
if (message_current == 20) |
48 |
{ |
49 |
draw_enabled = false |
50 |
cutscene_advance() |
51 |
} |
52 |
break |
53 |
case 8: |
54 |
obj_martlet_final_body_intro.sprite_index = spr_martlet_final_intro_4 |
55 |
obj_martlet_final_body_intro.image_index = 0 |
56 |
obj_martlet_final_body_intro.image_speed = 1 |
57 |
cutscene_advance() |
58 |
break |
59 |
case 9: |
60 |
if (obj_martlet_final_body_intro.image_index >= 62) |
61 |
{ |
62 |
obj_martlet_final_body_intro.image_speed = 0 |
63 |
cutscene_advance() |
64 |
} |
65 |
break |
66 |
case 10: |
67 |
cutscene_wait(2) |
68 |
break |
69 |
case 11: |
70 |
draw_enabled = true |
71 |
if (message_current == 21) |
72 |
{ |
73 |
draw_enabled = false |
74 |
cutscene_advance() |
75 |
} |
76 |
break |
77 |
case 12: |
78 |
obj_martlet_final_body_intro.image_speed = 1 |
79 |
if (obj_martlet_final_body_intro.image_index >= 74) |
80 |
{ |
81 |
obj_martlet_final_body_intro.image_speed = 0 |
82 |
cutscene_advance() |
83 |
} |
84 |
break |
85 |
case 13: |
86 |
draw_enabled = true |
87 |
if (message_current == 23) |
88 |
{ |
89 |
draw_enabled = false |
90 |
cutscene_advance() |
91 |
} |
92 |
break |
93 |
case 14: |
94 |
obj_martlet_final_body_intro.image_speed = 1 |
95 |
if (obj_martlet_final_body_intro.image_index >= 80) |
96 |
{ |
97 |
obj_martlet_final_body_intro.image_speed = 0 |
98 |
cutscene_advance() |
99 |
} |
100 |
break |
101 |
case 15: |
102 |
draw_enabled = true |
103 |
skippable = false |
104 |
screenshake_noloop = false |
105 |
scr_screenshake_battlescr_screenshake_battlefunction scr_screenshake_battle() //gml_Script_scr_screenshake_battle
{
instance_destroy(obj_screenshake_battle)
var screenshake = instance_create(0, 0, obj_screenshake_battle)
battle_screenshake_duration = argument[0]
battle_screenshake_intensity = argument[1]
battle_screenshake_dec = battle_screenshake_intensity / battle_screenshake_duration
} (5, 3) |
106 |
audio_play_sound(snd_ceroba_yell, 1, 0) |
107 |
cutscene_advance() |
108 |
break |
109 |
case 16: |
110 |
if cutscene_wait(1.5) |
111 |
{ |
112 |
audio_play_sound(snd_final_martlet_transformation, 1, 0) |
113 |
global.battle_music = audio_play_sound(mus_remedy, 1, 1) |
114 |
} |
115 |
break |
116 |
case 17: |
117 |
obj_martlet_final_body_intro.image_speed = 1 |
118 |
draw_enabled = false |
119 |
if ((!instance_exists(obj_screenshake_battle)) && screenshake_noloop == false) |
120 |
{ |
121 |
if (obj_martlet_final_body_intro.image_index < 135) |
122 |
{ |
123 |
instance_create(0, 0, obj_screenshake_battle) |
124 |
obj_screenshake_battle.battle_screenshake_duration = 9999 |
125 |
} |
126 |
} |
127 |
else if (obj_martlet_final_body_intro.image_index >= 135) |
128 |
{ |
129 |
screenshake_noloop = true |
130 |
instance_destroy(obj_screenshake_battle) |
131 |
} |
132 |
else |
133 |
obj_screenshake_battle.battle_screenshake_intensity = (obj_martlet_final_body_intro.image_index - 80) / (obj_martlet_final_body_intro.image_number - 1 - 80) * 6 |
134 |
if (obj_martlet_final_body_intro.image_index >= (obj_martlet_final_body_intro.image_number - 1)) |
135 |
{ |
136 |
obj_martlet_final_body_intro.image_speed = 0 |
137 |
cutscene_advance() |
138 |
} |
139 |
break |
140 |
case 18: |
141 |
instance_destroy(obj_martlet_final_body_intro) |
142 |
instance_create_depth(320, -450, 10, obj_martlet_final_base) |
143 |
cutscene_advance() |
144 |
break |
145 |
case 19: |
146 |
obj_martlet_final_base.y += 2.5 |
147 |
if (obj_martlet_final_base.y >= obj_martlet_final_base.martlet_y_target) |
148 |
cutscene_advance() |
149 |
break |
150 |
case 20: |
151 |
cutscene_wait(1.5) |
152 |
break |
153 |
case 21: |
154 |
obj_martlet_final_base.sprite_index = spr_martlet_final_scream |
155 |
scr_screenshake_battle_customscr_screenshake_battle_customfunction scr_screenshake_battle_custom() //gml_Script_scr_screenshake_battle_custom
{
instance_destroy(obj_screenshake_battle)
var screenshake = instance_create(0, 0, obj_screenshake_battle)
screenshake.battle_screenshake_duration = argument[0]
screenshake.battle_screenshake_intensity = argument[1]
screenshake.battle_screenshake_dec = screenshake.battle_screenshake_intensity / screenshake.battle_screenshake_duration
} (90, 4) |
156 |
audio_play_sound(snd_final_martlet_scream, 1, 0) |
157 |
global.hotland_flag[9] = 1 |
158 |
cutscene_advance() |
159 |
break |
160 |
case 22: |
161 |
cutscene_wait(2.5) |
162 |
break |
163 |
case 23: |
164 |
obj_martlet_final_base.martlet_sprites_reset = true |
165 |
cutscene_advance() |
166 |
break |
167 |
case 24: |
168 |
cutscene_wait(1) |
169 |
break |
170 |
case 25: |
171 |
if (!audio_is_playing(mus_remedy)) |
172 |
global.battle_music = audio_play_sound(mus_remedy, 1, 1) |
173 |
cutscene_advance() |
174 |
break |
175 |
case 26: |
176 |
fade_out_gui = false |
177 |
obj_dialogue_box_battle_transformation_any.visible = true |
178 |
obj_dialogue_box_battle_transformation_any.depth = -1 |
179 |
obj_heart_battle_fighting_parent.moveable = true |
180 |
instance_create_depth(0, 0, 101, obj_martlet_final_bg) |
181 |
instance_create_depth(0, 0, -1, obj_martlet_blue_shader) |
182 |
global.image_alpha_enemy_attacking = 0 |
183 |
cutscene_advance() |
184 |
break |
185 |
case 27: |
186 |
global.image_alpha_enemy_attacking += 0.1 |
187 |
if (global.image_alpha_enemy_attacking >= 0.5) |
188 |
{ |
189 |
instance_destroy(obj_quote_bubble_battle_yellow_3) |
190 |
instance_destroy() |
191 |
} |
192 |
break |
193 |
} |
194 |
|
195 |
} |