|
1
|
layer_name = ["BACKGROUND"];
|
|
2
|
if (room == room_town_north)
|
|
3
|
layer_name = ["Compatibility_Tiles_Depth_5000", "Compatibility_Tiles_Depth_950000", "Compatibility_Tiles_Depth_990000", "Compatibility_Tiles_Depth_1000000"];
|
|
4
|
if (room == room_beach)
|
|
5
|
layer_name = ["Compatibility_Instances_Depth_0", "FGTreeLayer_5000", "BGTreeLayer", "GroundLayer", "_oldShoreLine"];
|
|
6
|
if (room == room_town_krisyard)
|
|
7
|
layer_name = ["Compatibility_Tiles_Depth_5000", "Compatibility_Tiles_Depth_950000", "Compatibility_Tiles_Depth_990000", "Compatibility_Tiles_Depth_1000000"];
|
|
8
|
if (room == room_town_krisyard_dark)
|
|
9
|
layer_name = ["Compatibility_Tiles_Depth_5000", "Compatibility_Tiles_Depth_950000", "Compatibility_Tiles_Depth_990000", "Compatibility_Tiles_Depth_1000000"];
|
|
10
|
if (room == room_town_mid)
|
|
11
|
layer_name = ["Compatibility_Tiles_Depth_5000", "Compatibility_Tiles_Depth_990000", "Compatibility_Tiles_Depth_995000", "Compatibility_Tiles_Depth_1000000"];
|
|
12
|
if (room == room_town_south)
|
|
13
|
layer_name = ["Compatibility_Tiles_Depth_5000", "Compatibility_Tiles_Depth_980000", "Compatibility_Tiles_Depth_990000", "Compatibility_Tiles_Depth_995000", "Compatibility_Tiles_Depth_1000000"];
|
|
14
|
if (room == room_town_school)
|
|
15
|
layer_name = ["Compatibility_Tiles_Depth_5000", "Compatibility_Tiles_Depth_950000", "Compatibility_Tiles_Depth_990000", "Compatibility_Tiles_Depth_995000", "Compatibility_Tiles_Depth_1000000"];
|
|
16
|
if (room == room_town_church)
|
|
17
|
layer_name = ["Compatibility_Tiles_Depth_5000", "Compatibility_Tiles_Depth_990000", "Compatibility_Instances_Depth_990000", "Compatibility_Tiles_Depth_995000", "Compatibility_Tiles_Depth_1000000"];
|
|
18
|
if (room == room_graveyard)
|
|
19
|
layer_name = ["Compatibility_Tiles_Depth_5000", "Compatibility_Tiles_Depth_950000", "Compatibility_Tiles_Depth_990000", "Compatibility_Tiles_Depth_995000", "Compatibility_Tiles_Depth_1000000"];
|
|
20
|
if (room == room_town_shelter)
|
|
21
|
layer_name = ["Compatibility_Tiles_Depth_5000", "Compatibility_Instances_Depth_800000", "Compatibility_Tiles_Depth_990000", "Compatibility_Tiles_Depth_992000", "Compatibility_Tiles_Depth_995000", "Compatibility_Tiles_Depth_1000000"];
|
|
22
|
if (room == room_alphysalley)
|
|
23
|
layer_name = ["Compatibility_Background_0_bg_alphysalley"];
|
|
24
|
plot_begin = 0;
|
|
25
|
plot_end = 300;
|
|
26
|
if (global.chapter == 3)
|
|
27
|
{
|
|
28
|
plot_begin = 340;
|
|
29
|
plot_end = 999;
|
|
30
|
}
|
|
31
|
if (global.plot >= plot_begin && global.plot < plot_end)
|
|
32
|
{
|
|
33
|
pal_swap_layer_init();
|
|
34
|
for (var i = 0; i < array_length_1d(layer_name); i++)
|
|
35
|
{
|
|
36
|
pal_swap_enable_layer(layer_name[i]);
|
|
37
|
pal_swap_set_layer(palette_sprite, palette_index, layer_name[i], false);
|
|
38
|
}
|
|
39
|
pal_swap_reset();
|
|
40
|
}
|