|
1
|
init = 0;
|
|
2
|
timer = 0;
|
|
3
|
con = 0;
|
|
4
|
myinteract = 0;
|
|
5
|
piano_was_engaged = false;
|
|
6
|
flooractive = 1;
|
|
7
|
wasactive = 0;
|
|
8
|
layer_set_visible("DEBUG_ASSETS", 0);
|
|
9
|
if (scr_debugscr_debug
function scr_debug()
{
if (global.debug == 1)
return 1;
} ())
|
|
10
|
{
|
|
11
|
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);
|
|
12
|
if (keyboard_check(ord("P")))
|
|
13
|
global.plot = 237;
|
|
14
|
}
|
|
15
|
global.flag[7 disable_menu?] = 0;
|
|
16
|
cutscene = 0;
|
|
17
|
if (global.plot < 237)
|
|
18
|
global.plot = 237;
|
|
19
|
if (global.plot > 237)
|
|
20
|
cutscene = -1;
|
|
21
|
scr_walkntalk_create();
|
|
22
|
var spritesArray = layer_get_all_elements("DEBUG_ASSETS");
|
|
23
|
npc1 = -4;
|
|
24
|
npc2 = -4;
|
|
25
|
npc3 = -4;
|
|
26
|
for (var i = 0; i < array_length(spritesArray); i++)
|
|
27
|
{
|
|
28
|
if (layer_sprite_get_sprite(spritesArray[i]) == 2094 && layer_sprite_get_xscale(spritesArray[i]) == 2)
|
|
29
|
npc1 = scr_makenpc_fromasset(spritesArray[i]);
|
|
30
|
if (layer_sprite_get_sprite(spritesArray[i]) == 3020 && layer_sprite_get_xscale(spritesArray[i]) == -2)
|
|
31
|
{
|
|
32
|
npc2 = scr_makenpc_fromasset(spritesArray[i]);
|
|
33
|
npc2.y = npc2.y - 1000;
|
|
34
|
}
|
|
35
|
if (layer_sprite_get_sprite(spritesArray[i]) == 1614 && layer_sprite_get_xscale(spritesArray[i]) == 2)
|
|
36
|
npc3 = scr_makenpc_fromasset(spritesArray[i]);
|
|
37
|
}
|
|
38
|
layerarray = layer_get_all();
|
|
39
|
shelvesinit = 0;
|
|
40
|
sprite_array_size = -1;
|
|
41
|
layersprite = [];
|
|
42
|
for (var i = 0; i < array_length(layerarray); i++)
|
|
43
|
{
|
|
44
|
if (layer_get_name(layerarray[i]) == "spr_shelves")
|
|
45
|
{
|
|
46
|
elements = layer_get_all_elements(layerarray[i]);
|
|
47
|
for (var j = 0; j < array_length(elements); j++)
|
|
48
|
{
|
|
49
|
if (layer_get_element_type(elements[j]) == 4)
|
|
50
|
{
|
|
51
|
sprite_array_size++;
|
|
52
|
layersprite[sprite_array_size] = instance_create(layer_sprite_get_x(elements[j]), layer_sprite_get_y(elements[j]), obj_marker);
|
|
53
|
layersprite[sprite_array_size].sprite_index = layer_sprite_get_sprite(elements[j]);
|
|
54
|
layersprite[sprite_array_size].image_blend = layer_sprite_get_blend(elements[j]);
|
|
55
|
layersprite[sprite_array_size].image_speed = 0;
|
|
56
|
layersprite[sprite_array_size].image_index = layer_sprite_get_index(elements[j]);
|
|
57
|
with (layersprite[sprite_array_size])
|
|
58
|
{
|
|
59
|
image_index = (x / 40) + (y / 40);
|
|
60
|
scr_sizescr_size
function scr_size(arg0 = image_xscale, arg1 = image_yscale, arg2 = id)
{
with (arg2)
{
image_xscale = arg0;
image_yscale = arg1;
}
} (2, 2);
|
|
61
|
scr_depth_altscr_depth_alt
function scr_depth_alt(arg0 = id, arg1 = 0)
{
with (arg0)
depth = 100000 - ((y * 10) + ((sprite_height - sprite_yoffset) * 10) + (arg1 * 10));
} ();
|
|
62
|
if (sprite_index == spr_bibliox_redbook)
|
|
63
|
depth -= 1200;
|
|
64
|
}
|
|
65
|
layer_sprite_destroy(elements[j]);
|
|
66
|
}
|
|
67
|
}
|
|
68
|
break;
|
|
69
|
}
|
|
70
|
}
|