|
1
|
con = 0;
|
|
2
|
timer = 0;
|
|
3
|
init = 0;
|
|
4
|
siner = 0;
|
|
5
|
chaser = 0;
|
|
6
|
layer_set_visible("DEBUG_ASSETS", 0);
|
|
7
|
if (scr_debugscr_debug
function scr_debug()
{
if (global.debug == 1)
return 1;
} ())
|
|
8
|
{
|
|
9
|
scr_setpartyscr_setparty
function scr_setparty(arg0 = false, arg1 = false, arg2 = false)
{
var kris = obj_mainchara;
var slot = 0;
var __make = true;
if (!i_ex(kris))
__make = false;
scr_losechar();
safe_delete(obj_caterpillarchara);
if (arg0 == true)
{
scr_getchar(2);
if (__make)
{
with (scr_makecaterpillar(kris.x, kris.y, 2, slot))
{
halign = (global.darkzone == 0) ? 3 : 6;
valign = (global.darkzone == 0) ? 6 : 16;
x -= halign;
y -= valign;
}
}
slot++;
}
if (arg1 == true)
{
scr_getchar(3);
if (__make)
{
with (scr_makecaterpillar(kris.x, kris.y, 3, slot))
{
halign = 2;
valign = 12;
x -= halign;
y -= valign;
}
}
slot++;
}
if (arg2 == true)
{
scr_getchar(4);
if (__make)
{
with (scr_makecaterpillar(kris.x, kris.y, 4, slot))
{
halign = (global.darkzone == 0) ? 2 : 4;
valign = (global.darkzone == 0) ? 9 : 18;
x -= halign;
y -= valign;
}
}
slot++;
}
} (1, 1);
|
|
10
|
if (keyboard_check(ord("P")))
|
|
11
|
{
|
|
12
|
setxy(2850, 1040, 1049);
|
|
13
|
con = 3;
|
|
14
|
}
|
|
15
|
}
|
|
16
|
var doaudio = true;
|
|
17
|
if (doaudio)
|
|
18
|
{
|
|
19
|
snd_stop(global.currentsong[0]);
|
|
20
|
snd_stop(global.currentsong[1]);
|
|
21
|
song = "darkchurch_intro.ogg";
|
|
22
|
global.currentsong[0] = snd_init(song);
|
|
23
|
global.currentsong[1] = mus_loop_ext(global.currentsong[0], 1, 1);
|
|
24
|
audio_sound_gain(global.currentsong[1], 0, 0 / fps);
|
|
25
|
audio_sound_gain(global.currentsong[1], 0.7, 30000 / fps);
|
|
26
|
}
|
|
27
|
ripplemanager = instance_create(x, y, obj_church_ripple_area_manager);
|
|
28
|
ripplemanager.alwaysrip = true;
|
|
29
|
makerip = 0;
|
|
30
|
nextroom = 0;
|