|
1
|
with (instance_create(0, 0, obj_board_deathevent))
|
|
2
|
con = 0.5;
|
|
3
|
instance_create_depth(0, 0, 0, obj_gameover_minigame);
|
|
4
|
obj_battlecontroller.noreturn = 1;
|
|
5
|
obj_battlecontroller.intro = 2;
|
|
6
|
with (obj_tensionbar)
|
|
7
|
{
|
|
8
|
alarm[5]
|
|
9
|
hspeed = -10;
|
|
10
|
friction = -0.4;
|
|
11
|
}
|
|
12
|
snd_stop(global.batmusic[1]);
|
|
13
|
if (global.turntimer > 0)
|
|
14
|
global.turntimer = 0;
|
|
15
|
global.fighting = 0;
|
|
16
|
global.boardbattleresult = "lost";
|
|
17
|
with (obj_dbulletcontroller)
|
|
18
|
instance_destroy();
|
|
19
|
with (obj_heart)
|
|
20
|
instance_destroy();
|
|
21
|
with (obj_growtangle)
|
|
22
|
instance_destroy();
|
|
23
|
with (obj_writer)
|
|
24
|
instance_destroy();
|
|
25
|
with (obj_face)
|
|
26
|
instance_destroy();
|
|
27
|
with (obj_lerpvar)
|
|
28
|
instance_destroy();
|
|
29
|
with (obj_script_delayed)
|
|
30
|
instance_destroy();
|
|
31
|
with (obj_afterimage_grow)
|
|
32
|
instance_destroy();
|
|
33
|
with (obj_darkener)
|
|
34
|
instance_destroy();
|
|
35
|
global.flag[9 battle_music] = 0;
|
|
36
|
scr_endcombatscr_endcombat
function scr_endcombat()
{
global.fighting = 0;
if (global.specialbattle == 0 || global.specialbattle == 2 || global.specialbattle == 3)
{
if (global.specialbattle == 2)
{
with (obj_mainchara)
{
cutscene = 1;
x = global.charinstance[0].x;
y = global.charinstance[0].y;
}
with (global.cinstance[0])
{
x = global.charinstance[1].x;
y = global.charinstance[1].y;
}
with (global.cinstance[1])
{
x = global.charinstance[2].x;
y = global.charinstance[2].y;
}
with (obj_caterpillarchara)
scr_caterpillar_interpolate();
scr_pan_to_obj(obj_mainchara, 30);
with (obj_mainchara)
visible = 1;
with (obj_caterpillarchara)
visible = 1;
}
instance_create(0, 0, obj_endbattle);
with (obj_monsterparent)
instance_destroy();
with (obj_bulletparent)
instance_destroy();
with (obj_heroparent)
instance_destroy();
global.charinstance[0] = obj_mainchara;
global.charinstance[1] = global.cinstance[0];
global.charinstance[2] = global.cinstance[1];
instance_destroy();
}
} ();
|