|
1
|
var skipplmove = false;
|
|
2
|
if (i_ex(obj_gameover_minigame) && (room == room_board_1 || room == room_board_2))
|
|
3
|
skipplmove = true;
|
|
4
|
alarm[0] = 15; gml_Object_obj_endbattle_Alarm_0.gml
var skipplmove = false;
if (i_ex(obj_gameover_minigame) && (room == room_board_1 || room == room_board_2))
skipplmove = true;
with (obj_mainchara)
{
if (global.specialbattle != 3)
cutscene = 0;
visible = 1;
}
with (obj_caterpillarchara)
visible = 1;
if (!skipplmove)
{
if (global.specialbattle == 0 || global.specialbattle == 3)
{
for (i = 0; i < (count + 1); i += 1)
{
with (c[i])
instance_destroy();
}
}
}
if (global.specialbattle == 0 || global.specialbattle == 2)
global.interact = 0;
if (global.flag[9 battle_music] == 1)
{
snd_free(global.batmusic[0]);
snd_volume(global.currentsong[1], 0, 0);
snd_resume(global.currentsong[1]);
snd_volume(global.currentsong[1], 1, 20);
}
instance_destroy();
|
|
5
|
con = 0;
|
|
6
|
with (obj_battleback)
|
|
7
|
destroy = 1;
|
|
8
|
count = 0;
|
|
9
|
global.flag[49 last_encounter_tp] = global.tension;
|
|
10
|
global.tension = 0;
|
|
11
|
if (!skipplmove)
|
|
12
|
{
|
|
13
|
if (global.specialbattle == 0 || global.specialbattle == 3)
|
|
14
|
{
|
|
15
|
c[0] = scr_dark_markerscr_dark_marker
function scr_dark_marker(arg0, arg1, arg2)
{
thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
sprite_index = arg2;
image_speed = 0;
image_xscale = 2;
image_yscale = 2;
}
return thismarker;
} (global.heromakex[0], global.heromakey[0], spr_krisr_dark);
|
|
16
|
if (i_ex(global.cinstance[0]))
|
|
17
|
{
|
|
18
|
count += 1;
|
|
19
|
c[1] = scr_dark_markerscr_dark_marker
function scr_dark_marker(arg0, arg1, arg2)
{
thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
sprite_index = arg2;
image_speed = 0;
image_xscale = 2;
image_yscale = 2;
}
return thismarker;
} (global.heromakex[1], global.heromakey[1], global.cinstance[0].rsprite);
|
|
20
|
}
|
|
21
|
if (i_ex(global.cinstance[1]))
|
|
22
|
{
|
|
23
|
count += 1;
|
|
24
|
c[2] = scr_dark_markerscr_dark_marker
function scr_dark_marker(arg0, arg1, arg2)
{
thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
sprite_index = arg2;
image_speed = 0;
image_xscale = 2;
image_yscale = 2;
}
return thismarker;
} (global.heromakex[2], global.heromakey[2], global.cinstance[1].rsprite);
|
|
25
|
}
|
|
26
|
for (i = 0; i < (count + 1); i += 1)
|
|
27
|
{
|
|
28
|
if (i == 0)
|
|
29
|
{
|
|
30
|
c[i].direction = point_direction(c[i].x, c[i].y, obj_mainchara.x, obj_mainchara.y);
|
|
31
|
c[i].speed = point_distance(c[i].x, c[i].y, obj_mainchara.x, obj_mainchara.y) / 10;
|
|
32
|
c[i].depth = 200 - (i * 20);
|
|
33
|
}
|
|
34
|
if (i == 1 || i == 2)
|
|
35
|
{
|
|
36
|
c[i].direction = point_direction(c[i].x, c[i].y, global.cinstance[i - 1].x, global.cinstance[i - 1].y);
|
|
37
|
c[i].speed = point_distance(c[i].x, c[i].y, global.cinstance[i - 1].x, global.cinstance[i - 1].y) / 10;
|
|
38
|
c[i].depth = 200 - (i * 20);
|
|
39
|
}
|
|
40
|
}
|
|
41
|
alarm[0] = 10; gml_Object_obj_endbattle_Alarm_0.gml
var skipplmove = false;
if (i_ex(obj_gameover_minigame) && (room == room_board_1 || room == room_board_2))
skipplmove = true;
with (obj_mainchara)
{
if (global.specialbattle != 3)
cutscene = 0;
visible = 1;
}
with (obj_caterpillarchara)
visible = 1;
if (!skipplmove)
{
if (global.specialbattle == 0 || global.specialbattle == 3)
{
for (i = 0; i < (count + 1); i += 1)
{
with (c[i])
instance_destroy();
}
}
}
if (global.specialbattle == 0 || global.specialbattle == 2)
global.interact = 0;
if (global.flag[9 battle_music] == 1)
{
snd_free(global.batmusic[0]);
snd_volume(global.currentsong[1], 0, 0);
snd_resume(global.currentsong[1]);
snd_volume(global.currentsong[1], 1, 20);
}
instance_destroy();
|
|
42
|
}
|
|
43
|
}
|
|
44
|
if (global.flag[9 battle_music] == 1)
|
|
45
|
snd_volume(global.batmusic[1], 0, alarm[0]); gml_Object_obj_endbattle_Alarm_0.gml
var skipplmove = false;
if (i_ex(obj_gameover_minigame) && (room == room_board_1 || room == room_board_2))
skipplmove = true;
with (obj_mainchara)
{
if (global.specialbattle != 3)
cutscene = 0;
visible = 1;
}
with (obj_caterpillarchara)
visible = 1;
if (!skipplmove)
{
if (global.specialbattle == 0 || global.specialbattle == 3)
{
for (i = 0; i < (count + 1); i += 1)
{
with (c[i])
instance_destroy();
}
}
}
if (global.specialbattle == 0 || global.specialbattle == 2)
global.interact = 0;
if (global.flag[9 battle_music] == 1)
{
snd_free(global.batmusic[0]);
snd_volume(global.currentsong[1], 0, 0);
snd_resume(global.currentsong[1]);
snd_volume(global.currentsong[1], 1, 20);
}
instance_destroy();
|