1 |
function scr_cutscene_battle_martlet_final_2_outroscr_cutscene_battle_martlet_final_2_outrofunction scr_cutscene_battle_martlet_final_2_outro() //gml_Script_scr_cutscene_battle_martlet_final_2_outro
{
if live_call()
return global.live_result;
switch scene
{
case -3:
cymbal_sound = audio_play_sound(mus_cymbal, 1, 0)
cutscene_advance()
break
case -2:
if (!audio_is_playing(cymbal_sound))
{
draw_alpha_white = 1
cutscene_wait(1.5)
}
else
draw_alpha_white = audio_sound_get_track_position(cymbal_sound) / audio_sound_length(cymbal_sound)
break
case -1:
draw_alpha_white -= 0.05
if (draw_alpha_white <= 0)
{
draw_alpha_white = 0
cutscene_advance()
}
break
case 0:
if cutscene_wait(3)
draw_enabled = true
break
case 1:
if (message_current == 8)
{
skippable = false
cutscene_wait(2)
}
break
case 2:
message_adv = true
skippable = true
draw_enabled = false
obj_martlet_final_2_base.martlet_target_melt_sprite = 2933
scr_screenshake_battle_custom(6, 4)
audio_play_sound(snd_undertale_thud, 1, 0)
cutscene_advance()
break
case 3:
draw_enabled = false
cutscene_wait(1)
break
case 4:
draw_enabled = true
cutscene_advance()
break
case 5:
if (message_current == 11)
{
draw_enabled = false
scene++
}
break
case 6:
obj_martlet_final_2_base.martlet_target_melt_sprite = 1922
scr_screenshake_battle_custom(6, 4)
audio_play_sound(snd_undertale_thud, 1, 0)
cutscene_advance()
break
case 7:
cutscene_wait(1)
break
case 8:
draw_enabled = true
if (message_current == 12)
{
draw_enabled = false
scene++
}
break
case 9:
obj_martlet_final_2_base.martlet_target_melt_sprite = 1278
scr_screenshake_battle_custom(6, 4)
audio_play_sound(snd_undertale_thud, 1, 0)
cutscene_advance()
break
case 10:
cutscene_wait(1)
break
case 11:
draw_enabled = true
if (message_current == 13)
{
draw_enabled = false
scene++
}
break
case 12:
obj_martlet_final_2_base.martlet_target_melt_sprite = 2791
scr_screenshake_battle_custom(6, 4)
audio_play_sound(snd_undertale_thud, 1, 0)
cutscene_advance()
... () //gml_Script_scr_cutscene_battle_martlet_final_2_outro |
2 |
{ |
3 |
if live_call() |
4 |
return global.live_result; |
5 |
switch scene |
6 |
{ |
7 |
case -3: |
8 |
cymbal_sound = audio_play_sound(mus_cymbal, 1, 0) |
9 |
cutscene_advance() |
10 |
break |
11 |
case -2: |
12 |
if (!audio_is_playing(cymbal_sound)) |
13 |
{ |
14 |
draw_alpha_white = 1 |
15 |
cutscene_wait(1.5) |
16 |
} |
17 |
else |
18 |
draw_alpha_white = audio_sound_get_track_position(cymbal_sound) / audio_sound_length(cymbal_sound) |
19 |
break |
20 |
case -1: |
21 |
draw_alpha_white -= 0.05 |
22 |
if (draw_alpha_white <= 0) |
23 |
{ |
24 |
draw_alpha_white = 0 |
25 |
cutscene_advance() |
26 |
} |
27 |
break |
28 |
case 0: |
29 |
if cutscene_wait(3) |
30 |
draw_enabled = true |
31 |
break |
32 |
case 1: |
33 |
if (message_current == 8) |
34 |
{ |
35 |
skippable = false |
36 |
cutscene_wait(2) |
37 |
} |
38 |
break |
39 |
case 2: |
40 |
message_adv = true |
41 |
skippable = true |
42 |
draw_enabled = false |
43 |
obj_martlet_final_2_base.martlet_target_melt_sprite = 2933 |
44 |
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
} (6, 4) |
45 |
audio_play_sound(snd_undertale_thud, 1, 0) |
46 |
cutscene_advance() |
47 |
break |
48 |
case 3: |
49 |
draw_enabled = false |
50 |
cutscene_wait(1) |
51 |
break |
52 |
case 4: |
53 |
draw_enabled = true |
54 |
cutscene_advance() |
55 |
break |
56 |
case 5: |
57 |
if (message_current == 11) |
58 |
{ |
59 |
draw_enabled = false |
60 |
scene++ |
61 |
} |
62 |
break |
63 |
case 6: |
64 |
obj_martlet_final_2_base.martlet_target_melt_sprite = 1922 |
65 |
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
} (6, 4) |
66 |
audio_play_sound(snd_undertale_thud, 1, 0) |
67 |
cutscene_advance() |
68 |
break |
69 |
case 7: |
70 |
cutscene_wait(1) |
71 |
break |
72 |
case 8: |
73 |
draw_enabled = true |
74 |
if (message_current == 12) |
75 |
{ |
76 |
draw_enabled = false |
77 |
scene++ |
78 |
} |
79 |
break |
80 |
case 9: |
81 |
obj_martlet_final_2_base.martlet_target_melt_sprite = 1278 |
82 |
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
} (6, 4) |
83 |
audio_play_sound(snd_undertale_thud, 1, 0) |
84 |
cutscene_advance() |
85 |
break |
86 |
case 10: |
87 |
cutscene_wait(1) |
88 |
break |
89 |
case 11: |
90 |
draw_enabled = true |
91 |
if (message_current == 13) |
92 |
{ |
93 |
draw_enabled = false |
94 |
scene++ |
95 |
} |
96 |
break |
97 |
case 12: |
98 |
obj_martlet_final_2_base.martlet_target_melt_sprite = 2791 |
99 |
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
} (6, 4) |
100 |
audio_play_sound(snd_undertale_thud, 1, 0) |
101 |
cutscene_advance() |
102 |
break |
103 |
case 13: |
104 |
cutscene_wait(1) |
105 |
break |
106 |
case 14: |
107 |
draw_enabled = true |
108 |
if (message_current == 14) |
109 |
{ |
110 |
draw_enabled = false |
111 |
scene++ |
112 |
} |
113 |
break |
114 |
case 15: |
115 |
obj_martlet_final_2_base.martlet_target_melt_sprite = 810 |
116 |
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
} (6, 4) |
117 |
audio_play_sound(snd_undertale_thud, 1, 0) |
118 |
cutscene_advance() |
119 |
break |
120 |
case 16: |
121 |
draw_enabled = true |
122 |
skippable = false |
123 |
cutscene_wait(3) |
124 |
break |
125 |
case 17: |
126 |
draw_enabled = false |
127 |
cutscene_wait(1.5) |
128 |
break |
129 |
case 18: |
130 |
obj_martlet_final_2_base.sprite_index = spr_martlet_f2_goopz10 |
131 |
cutscene_wait(2.5) |
132 |
break |
133 |
case 19: |
134 |
global.enemy_dead = true |
135 |
audio_play_sound(snd_monster_damage_death, 20, false) |
136 |
instance_create_depth(obj_martlet_final_2_base.x, obj_martlet_final_2_base.y, -100, obj_martlet_final_dead) |
137 |
instance_destroy(obj_martlet_final_2_base) |
138 |
cutscene_advance() |
139 |
break |
140 |
case 20: |
141 |
cutscene_wait(2) |
142 |
break |
143 |
case 21: |
144 |
fade_out_gui = false |
145 |
if (obj_dialogue_box_battle.image_alpha < 1) |
146 |
obj_dialogue_box_battle.image_alpha += 0.1 |
147 |
else |
148 |
cutscene_wait(3.5) |
149 |
break |
150 |
case 22: |
151 |
global.player_level = 20 |
152 |
global.max_hp_self = global.player_hp_next[20] |
153 |
global.player_attack = global.player_attack_next[20] |
154 |
global.player_defense = global.player_defense_next[20] |
155 |
audio_play_sound(snd_love_increased, 20, 0) |
156 |
cutscene_advance() |
157 |
break |
158 |
case 23: |
159 |
instance_create_depth(0, 0, -100, obj_dialogue_battle_win_martlet_final) |
160 |
cutscene_advance() |
161 |
break |
162 |
case 24: |
163 |
if (!instance_exists(obj_dialogue_battle_win_martlet_final)) |
164 |
cutscene_wait(2) |
165 |
break |
166 |
case 25: |
167 |
instance_create_depth(323, 178, -100, obj_battle_fmartlet_flowey) |
168 |
cutscene_advance() |
169 |
break |
170 |
case 26: |
171 |
if cutscene_wait(2.5) |
172 |
{ |
173 |
message_adv = true |
174 |
obj_quote_bubble_battle.y += 40 |
175 |
} |
176 |
break |
177 |
case 27: |
178 |
draw_enabled = true |
179 |
skippable = true |
180 |
if (message_current == 26) |
181 |
{ |
182 |
skippable = false |
183 |
if (!instance_exists(obj_heart_battle_menu_fake_martlet)) |
184 |
{ |
185 |
instance_destroy(obj_heart_battle_menu) |
186 |
instance_create_depth(320, 320, -900, obj_heart_battle_menu_fake_martlet) |
187 |
} |
188 |
else if (obj_heart_battle_menu_fake_martlet.image_alpha >= 1 && cutscene_wait(1.5)) |
189 |
{ |
190 |
skippable = true |
191 |
message_adv = true |
192 |
} |
193 |
} |
194 |
break |
195 |
case 28: |
196 |
if (message_current == 28) |
197 |
{ |
198 |
draw_enabled = false |
199 |
skippable = false |
200 |
cutscene_advance() |
201 |
} |
202 |
break |
203 |
case 29: |
204 |
cutscene_advance() |
205 |
break |
206 |
case 30: |
207 |
if (obj_heart_battle_menu_fake_martlet.image_alpha >= 1) |
208 |
cutscene_wait(1) |
209 |
break |
210 |
case 31: |
211 |
with (obj_heart_battle_menu_fake_martlet) |
212 |
{ |
213 |
var xtarget = obj_fight.x + 17 |
214 |
var ytarget = obj_fight.y + 23 |
215 |
obj_heart_battle_menu_fake_martlet.x = lerp(x, xtarget, 0.15) |
216 |
obj_heart_battle_menu_fake_martlet.y = lerp(y, ytarget, 0.15) |
217 |
if (abs(xtarget - x) < 1 && abs(ytarget - y) < 1) |
218 |
{ |
219 |
x = xtarget |
220 |
y = ytarget |
221 |
other.scene++ |
222 |
} |
223 |
} |
224 |
break |
225 |
case 32: |
226 |
cutscene_wait(0.5) |
227 |
break |
228 |
case 33: |
229 |
draw_enabled = true |
230 |
skippable = true |
231 |
cutscene_advance() |
232 |
break |
233 |
case 34: |
234 |
if (message_current == 30) |
235 |
{ |
236 |
draw_enabled = false |
237 |
skippable = false |
238 |
cutscene_advance() |
239 |
} |
240 |
break |
241 |
case 35: |
242 |
cutscene_wait(1) |
243 |
break |
244 |
case 36: |
245 |
obj_heart_battle_menu_fake_martlet.key_select_simulate = true |
246 |
cutscene_advance() |
247 |
break |
248 |
case 37: |
249 |
cutscene_wait(0.5) |
250 |
break |
251 |
case 38: |
252 |
draw_enabled = true |
253 |
skippable = true |
254 |
save_message_alpha = 4 |
255 |
cutscene_advance() |
256 |
break |
257 |
case 39: |
258 |
if (message_current == 32) |
259 |
{ |
260 |
draw_enabled = false |
261 |
skippable = false |
262 |
cutscene_advance() |
263 |
} |
264 |
break |
265 |
case 40: |
266 |
cutscene_wait(1) |
267 |
break |
268 |
case 41: |
269 |
instance_create_depth(0, 0, -100, obj_flowey_battle_screen_glitch) |
270 |
save_message = "LOAD FAILED" |
271 |
save_message_alpha = 4 |
272 |
obj_battle_fmartlet_flowey.sprite_index = flowey_plain |
273 |
cutscene_advance() |
274 |
break |
275 |
case 42: |
276 |
cutscene_wait(2.5) |
277 |
break |
278 |
case 43: |
279 |
save_message = "LOAD FAILED" |
280 |
save_message_alpha = 4 |
281 |
obj_battle_fmartlet_flowey.sprite_index = flowey_plains |
282 |
cutscene_advance() |
283 |
break |
284 |
case 44: |
285 |
cutscene_wait(3.5) |
286 |
break |
287 |
case 45: |
288 |
case 47: |
289 |
case 49: |
290 |
case 51: |
291 |
instance_create_depth(0, 0, -100, obj_flowey_battle_screen_glitch) |
292 |
save_message = "LOAD FAILED" |
293 |
save_message_alpha = 4 |
294 |
obj_battle_fmartlet_flowey.sprite_index = flowey_pissed |
295 |
cutscene_advance() |
296 |
break |
297 |
case 46: |
298 |
cutscene_wait(1) |
299 |
break |
300 |
case 48: |
301 |
cutscene_wait(0.5) |
302 |
break |
303 |
case 50: |
304 |
cutscene_wait(0.25) |
305 |
break |
306 |
case 52: |
307 |
cutscene_wait(1) |
308 |
break |
309 |
case 53: |
310 |
skippable = true |
311 |
draw_enabled = true |
312 |
if (message_current == 39) |
313 |
{ |
314 |
draw_enabled = false |
315 |
skippable = false |
316 |
cutscene_advance() |
317 |
} |
318 |
break |
319 |
case 54: |
320 |
instance_destroy(obj_dialogue_box_battle) |
321 |
instance_create_depth(319, 320, -300, obj_dialogue_box_battle_transformation_any_out_cutscene) |
322 |
with (obj_dialogue_box_battle_transformation_any_out_cutscene) |
323 |
{ |
324 |
sprite_width_destination = 140 |
325 |
sprite_height_destination = 140 |
326 |
disjoint_x = 0 |
327 |
disjoint_y = 0 |
328 |
} |
329 |
if (!instance_exists(obj_heart_battle_fake_martlet)) |
330 |
{ |
331 |
instance_create_depth(obj_heart_battle_menu_fight_fake_martlet.x, obj_heart_battle_menu_fight_fake_martlet.y, -900, obj_heart_battle_fake_martlet) |
332 |
instance_destroy(obj_heart_battle_menu_fight_fake_martlet) |
333 |
} |
334 |
cutscene_advance() |
335 |
break |
336 |
case 55: |
337 |
with (obj_heart_battle_fake_martlet) |
338 |
{ |
339 |
x = lerp(obj_heart_battle_fake_martlet.x, 320, 0.15) |
340 |
y = lerp(obj_heart_battle_fake_martlet.y, 320, 0.15) |
341 |
} |
342 |
if (instance_exists(obj_dialogue_box_battle_transformation_any) && abs(obj_heart_battle_fake_martlet.x - 320) < 1 && abs(obj_heart_battle_fake_martlet.y - 320) < 1) |
343 |
{ |
344 |
obj_heart_battle_fake_martlet.x = 320 |
345 |
obj_heart_battle_fake_martlet.y = 320 |
346 |
cutscene_advance() |
347 |
} |
348 |
break |
349 |
case 56: |
350 |
save_message = "FILE 1 SAVED" |
351 |
save_message_alpha = 4 |
352 |
cutscene_advance() |
353 |
break |
354 |
case 57: |
355 |
cutscene_wait(0.25) |
356 |
break |
357 |
case 58: |
358 |
while (instance_number(obj_battle_enemy_attack_friendliness_pellets_yellow) < 5) |
359 |
instance_create(obj_battle_fmartlet_flowey.x, obj_battle_fmartlet_flowey.y, obj_battle_enemy_attack_friendliness_pellets_yellow) |
360 |
cutscene_advance() |
361 |
break |
362 |
case 59: |
363 |
cutscene_wait(1.5) |
364 |
break |
365 |
case 60: |
366 |
instance_create_depth(0, 0, -100, obj_flowey_battle_screen_glitch) |
367 |
with (obj_battle_enemy_attack_friendliness_pellets_yellow) |
368 |
instance_destroy() |
369 |
save_message = "FILE 1 LOADED" |
370 |
save_message_alpha = 4 |
371 |
cutscene_advance() |
372 |
break |
373 |
case 61: |
374 |
obj_battle_fmartlet_flowey.sprite_index = flowey_plain |
375 |
cutscene_wait(2) |
376 |
break |
377 |
case 62: |
378 |
obj_battle_fmartlet_flowey.sprite_index = flowey_pissed |
379 |
draw_enabled = true |
380 |
skippable = true |
381 |
cutscene_advance() |
382 |
break |
383 |
case 63: |
384 |
if (message_current == 40) |
385 |
{ |
386 |
draw_enabled = false |
387 |
skippable = false |
388 |
cutscene_advance() |
389 |
} |
390 |
break |
391 |
case 64: |
392 |
var inc = 12 |
393 |
for (var i = 0; i < 30; i++) |
394 |
{ |
395 |
var _len = 100 |
396 |
var _dir = inc + i * inc |
397 |
var pellet = instance_create_depth(320, 320, -1000, obj_fpellets_fake_martlet) |
398 |
pellet.alarm[0] = i + 1 |
399 |
pellet.dir = _dir |
400 |
pellet.len = _len |
401 |
} |
402 |
cutscene_advance() |
403 |
break |
404 |
case 65: |
405 |
cutscene_wait(2) |
406 |
break |
407 |
case 66: |
408 |
with (obj_fpellets_fake_martlet) |
409 |
{ |
410 |
len -= 3 |
411 |
if (len <= 20) |
412 |
other.scene = 67 |
413 |
} |
414 |
break |
415 |
case 67: |
416 |
instance_create_depth(0, 0, -100, obj_flowey_battle_screen_glitch) |
417 |
with (obj_fpellets_fake_martlet) |
418 |
instance_destroy() |
419 |
save_message = "FILE 1 LOADED" |
420 |
save_message_alpha = 4 |
421 |
cutscene_advance() |
422 |
break |
423 |
case 68: |
424 |
cutscene_wait(1) |
425 |
break |
426 |
case 69: |
427 |
var soul = obj_heart_battle_fighting_parent |
428 |
var vine1 = instance_create_depth(-20, soul.y, -1000, obj_vines_fake_martlet) |
429 |
vine1.hspeed = 30 |
430 |
var vine2 = instance_create_depth(660, soul.y, -1000, obj_vines_fake_martlet) |
431 |
vine2.image_xscale = -1 |
432 |
vine2.hspeed = -30 |
433 |
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
} (7, 2) |
434 |
audio_play_sound(snd_undertale_impact, 1, 0) |
435 |
cutscene_advance() |
436 |
break |
437 |
case 70: |
438 |
with (obj_vines_fake_martlet) |
439 |
{ |
440 |
if (image_xscale == 1) |
441 |
{ |
442 |
if (x > 240) |
443 |
other.scene++ |
444 |
} |
445 |
} |
446 |
break |
447 |
case 71: |
448 |
instance_create_depth(0, 0, -100, obj_flowey_battle_screen_glitch) |
449 |
with (obj_vines_fake_martlet) |
450 |
instance_destroy() |
451 |
save_message = "FILE 1 LOADED" |
452 |
save_message_alpha = 4 |
453 |
cutscene_advance() |
454 |
break |
455 |
case 72: |
456 |
cutscene_wait(1) |
457 |
break |
458 |
case 73: |
459 |
soul = 2979 |
460 |
vine1 = instance_create_depth(-20, -20, -1000, obj_vines_fake_martlet) |
461 |
vine1.direction = 315 |
462 |
vine1.image_angle = 315 |
463 |
vine1.speed = 30 |
464 |
vine2 = instance_create_depth(660, 660, -1000, obj_vines_fake_martlet) |
465 |
vine2.direction = 135 |
466 |
vine2.image_angle = 135 |
467 |
vine2.speed = 30 |
468 |
var vine3 = instance_create_depth(-20, 660, -1000, obj_vines_fake_martlet) |
469 |
vine3.direction = 45 |
470 |
vine3.image_angle = 45 |
471 |
vine3.speed = 30 |
472 |
var vine4 = instance_create_depth(660, -20, -1000, obj_vines_fake_martlet) |
473 |
vine4.direction = 225 |
474 |
vine4.image_angle = 225 |
475 |
vine4.speed = 30 |
476 |
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
} (7, 2) |
477 |
audio_play_sound(snd_undertale_impact, 1, 0) |
478 |
cutscene_advance() |
479 |
break |
480 |
case 74: |
481 |
cutscene_wait(0.45) |
482 |
break |
483 |
case 75: |
484 |
instance_create_depth(0, 0, -100, obj_flowey_battle_screen_glitch) |
485 |
with (obj_vines_fake_martlet) |
486 |
instance_destroy() |
487 |
save_message = "FILE 1 LOADED" |
488 |
save_message_alpha = 4 |
489 |
cutscene_advance() |
490 |
break |
491 |
case 76: |
492 |
var battle_box = obj_dialogue_box_battle_transformation_any |
493 |
for (i = 0; i < 6; i++) |
494 |
{ |
495 |
var bullet = instance_create_depth((battle_box.bbox_left - 30), (battle_box.bbox_top + 15 + (70/3) * i), -1000, obj_battle_enemy_attack_fpellets_simple) |
496 |
bullet.direction = 0 |
497 |
} |
498 |
for (i = 0; i < 7; i++) |
499 |
{ |
500 |
bullet = instance_create_depth((battle_box.bbox_right + 30), (battle_box.bbox_top + (70/3) * i), -1000, obj_battle_enemy_attack_fpellets_simple) |
501 |
bullet.direction = 180 |
502 |
} |
503 |
cutscene_advance() |
504 |
break |
505 |
case 77: |
506 |
cutscene_wait(1) |
507 |
break |
508 |
case 78: |
509 |
audio_play_sound(snd_undertale_swoosh, 1, 0) |
510 |
with (obj_battle_enemy_attack_fpellets_simple) |
511 |
speed = 6 |
512 |
cutscene_advance() |
513 |
break |
514 |
case 79: |
515 |
cutscene_wait(0.35) |
516 |
break |
517 |
case 80: |
518 |
instance_create_depth(0, 0, -1000, obj_flowey_battle_screen_glitch) |
519 |
with (obj_battle_enemy_attack_fpellets_simple) |
520 |
instance_destroy() |
521 |
save_message = "FILE 1 LOADED" |
522 |
save_message_alpha = 4 |
523 |
cutscene_advance() |
524 |
break |
525 |
case 81: |
526 |
cutscene_wait(2.5) |
527 |
break |
528 |
case 82: |
529 |
obj_battle_fmartlet_flowey.y -= 44 |
530 |
obj_battle_fmartlet_flowey.sprite_index = spr_flowey_enter_plain |
531 |
obj_battle_fmartlet_flowey.image_index = obj_battle_fmartlet_flowey.image_number - 1 |
532 |
obj_battle_fmartlet_flowey.image_speed = -1 |
533 |
cutscene_advance() |
534 |
break |
535 |
case 83: |
536 |
cutscene_wait(0.35) |
537 |
break |
538 |
case 84: |
539 |
instance_create_depth(0, 0, -1000, obj_flowey_battle_screen_glitch) |
540 |
obj_battle_fmartlet_flowey.y += 44 |
541 |
obj_battle_fmartlet_flowey.sprite_index = flowey_plain |
542 |
obj_battle_fmartlet_flowey.image_index = 0 |
543 |
obj_battle_fmartlet_flowey.image_speed = 0 |
544 |
save_message = "FILE 1 LOADED" |
545 |
save_message_alpha = 4 |
546 |
cutscene_advance() |
547 |
break |
548 |
case 85: |
549 |
if cutscene_wait(2) |
550 |
{ |
551 |
} |
552 |
break |
553 |
case 86: |
554 |
cutscene_wait(2) |
555 |
break |
556 |
case 87: |
557 |
draw_enabled = true |
558 |
skippable = true |
559 |
cutscene_advance() |
560 |
break |
561 |
case 88: |
562 |
if (message_current >= 52) |
563 |
{ |
564 |
} |
565 |
if (message_current == 57) |
566 |
{ |
567 |
global.circle_text_radius = 2 |
568 |
increase = 0.5 |
569 |
} |
570 |
if (message_current == 59) |
571 |
{ |
572 |
skippable = false |
573 |
if (characters >= message_length) |
574 |
cutscene_wait(1.5) |
575 |
} |
576 |
break |
577 |
case 89: |
578 |
draw_enabled = false |
579 |
global.circle_text_radius = 1 |
580 |
cutscene_wait(0.25) |
581 |
break |
582 |
case 90: |
583 |
obj_battle_fmartlet_flowey.y -= 44 |
584 |
obj_battle_fmartlet_flowey.starting_point_y = obj_battle_fmartlet_flowey.y |
585 |
obj_battle_fmartlet_flowey.sprite_index = spr_evil_flowey_dies_1 |
586 |
flowey_laugh = audio_play_sound(snd_flowey_laugh, 1, 0) |
587 |
cutscene_advance() |
588 |
break |
589 |
case 91: |
590 |
cutscene_wait(1) |
591 |
break |
592 |
case 92: |
593 |
shot_number_max = 8 |
594 |
shot_number_current = 0 |
595 |
shot[0] = noone |
596 |
shot_offset[0][0] = 8 |
597 |
shot_offset[0][1] = -14 |
598 |
shot_offset[1][0] = -9 |
599 |
shot_offset[1][1] = -25 |
600 |
shot_offset[2][0] = -12 |
601 |
shot_offset[2][1] = -7 |
602 |
shot_offset[3][0] = 7 |
603 |
shot_offset[3][1] = -4 |
604 |
shot_offset[4][0] = 24 |
605 |
shot_offset[4][1] = -25 |
606 |
shot_offset[5][0] = -35 |
607 |
shot_offset[5][1] = -26 |
608 |
shot_offset[6][0] = 0 |
609 |
shot_offset[6][1] = 0 |
610 |
shot_offset[7][0] = 0 |
611 |
shot_offset[7][1] = 0 |
612 |
cutscene_advance() |
613 |
break |
614 |
case 93: |
615 |
if (shot_number_current < shot_number_max) |
616 |
{ |
617 |
shot[shot_number_current] = instance_create_depth((obj_battle_fmartlet_flowey.x + shot_offset[shot_number_current][0]), (obj_battle_fmartlet_flowey.y + shot_offset[shot_number_current][1]), -1000, obj_shot_strong_fake) |
618 |
shot_number_current++ |
619 |
cutscene_advance() |
620 |
} |
621 |
else |
622 |
scene = 96 |
623 |
break |
624 |
case 94: |
625 |
cutscene_wait(0.5) |
626 |
break |
627 |
case 95: |
628 |
for (i = 0; i < array_length(shot); i++) |
629 |
{ |
630 |
if (shot[i] != noone && (!instance_exists(shot[i]))) |
631 |
{ |
632 |
shot[i] = -4 |
633 |
obj_battle_fmartlet_flowey.flowey_shake_intensity = (i + 1) * 2 |
634 |
obj_battle_fmartlet_flowey.sprite_index = asset_get_index("spr_evil_flowey_dies_" + (string(i + 2))) |
635 |
var hit_sound = audio_play_sound(snd_monster_damage_hit_critical, 1, 0) |
636 |
audio_sound_pitch(hit_sound, random_range(0.7, 1.3)) |
637 |
scene = 93 |
638 |
} |
639 |
} |
640 |
break |
641 |
case 96: |
642 |
cutscene_wait(3) |
643 |
break |
644 |
case 97: |
645 |
obj_battle_fmartlet_flowey.sprite_index = spr_evil_flowey_dies_10 |
646 |
obj_battle_fmartlet_flowey.image_speed = 1 |
647 |
cutscene_advance() |
648 |
break |
649 |
case 98: |
650 |
cutscene_wait(7) |
651 |
break |
652 |
case 99: |
653 |
global.current_room_overworld = "rm_hotland_roof" |
654 |
obj_pl.x = 210 |
655 |
obj_pl.y = 350 |
656 |
global.hotland_flag[9] = 3 |
657 |
instance_create(0, 0, obj_battle_fade_out_screen) |
658 |
cutscene_advance() |
659 |
break |
660 |
case 100: |
661 |
cutscene_end() |
662 |
break |
663 |
} |
664 |
|
665 |
} |