| 1 |
function scr_cutscene_battle_macro_1scr_cutscene_battle_macro_1function 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(141, 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();
... () |
| 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(arg0, arg1)
{
var snd = arg0;
var fade_len = arg1;
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;
} (141, 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 |
{ |
| 77 |
cutscene_advance(); |
| 78 |
} |
| 79 |
break; |
| 80 |
case 14: |
| 81 |
cutscene_wait(3); |
| 82 |
break; |
| 83 |
case 15: |
| 84 |
instance_destroy(obj_macro_froggit_particle); |
| 85 |
obj_macro_froggit_body.draw_silhouette_alpha -= 0.05; |
| 86 |
obj_background_macro_froggit.draw_alpha = 1 - obj_macro_froggit_body.draw_silhouette_alpha; |
| 87 |
if (obj_macro_froggit_body.draw_silhouette_alpha <= 0) |
| 88 |
{ |
| 89 |
obj_macro_froggit_body.draw_silhouette_alpha = 0; |
| 90 |
obj_background_macro_froggit.draw_alpha = 1; |
| 91 |
cutscene_advance(); |
| 92 |
} |
| 93 |
break; |
| 94 |
case 16: |
| 95 |
cutscene_wait(1); |
| 96 |
break; |
| 97 |
case 17: |
| 98 |
if (!instance_exists(obj_quote_bubble_battle_yellow_2)) |
| 99 |
{ |
| 100 |
with (obj_quote_bubble_battle) |
| 101 |
instance_destroy(); |
| 102 |
instance_create(402, 68, obj_quote_bubble_battle_yellow_2); |
| 103 |
} |
| 104 |
draw_enabled = true; |
| 105 |
cutscene_wait(2); |
| 106 |
break; |
| 107 |
case 18: |
| 108 |
global.battle_music = audio_play_sound(mus_through_the_macro_lens, 20, true); |
| 109 |
instance_create_depth(0, 0, -100, obj_macro_frog_counter); |
| 110 |
with (obj_macro_froggit_head) |
| 111 |
path_start(pt_macro_froggit_head, 0.5, path_action_continue, 0); |
| 112 |
cutscene_advance(); |
| 113 |
break; |
| 114 |
case 19: |
| 115 |
with (obj_quote_bubble_battle) |
| 116 |
instance_destroy(); |
| 117 |
instance_destroy(); |
| 118 |
with (obj_dialogue_box_battle_transformation_any) |
| 119 |
event_user(0); |
| 120 |
break; |
| 121 |
} |
| 122 |
} |