|
1
|
glow = 0;
|
|
2
|
stretch = 3;
|
|
3
|
min_stretch = 0.5;
|
|
4
|
xoff = 0;
|
|
5
|
yoff = 2;
|
|
6
|
transition_length = 30;
|
|
7
|
tint = 16726314;
|
|
8
|
auto_color = false;
|
|
9
|
highlight_color = 16764994;
|
|
10
|
polarize = true;
|
|
11
|
depth = 700000;
|
|
12
|
shadow_kill = false;
|
|
13
|
init = false;
|
|
14
|
lerper = 1;
|
|
15
|
old_state = false;
|
|
16
|
strength = 0;
|
|
17
|
active = false;
|
|
18
|
stayactive = -1;
|
|
19
|
actind = 0;
|
|
20
|
lerpstrength = 0.125;
|
|
21
|
fall_timer = 0;
|
|
22
|
falling = false;
|
|
23
|
shadows = true;
|
|
24
|
tiles_only = false;
|
|
25
|
fadeparallax = true;
|
|
26
|
|
|
27
|
create_highlight = function(arg0, arg1 = true, arg2 = true, arg3 = 0)
|
|
28
|
{
|
|
29
|
var daddy = id;
|
|
30
|
with (arg0)
|
|
31
|
{
|
|
32
|
if (arg2)
|
|
33
|
{
|
|
34
|
var _shadow = instance_create(x, y, obj_floorshadow);
|
|
35
|
_shadow.target = id;
|
|
36
|
_shadow.yoff = arg3;
|
|
37
|
if (object_index == obj_mainchara)
|
|
38
|
_shadow.name = "kris";
|
|
39
|
else if (object_index == obj_caterpillarchara || object_index == obj_actor)
|
|
40
|
_shadow.name = name;
|
|
41
|
with (_shadow)
|
|
42
|
{
|
|
43
|
stretch = daddy.actind * 2;
|
|
44
|
image_alpha = daddy.actind;
|
|
45
|
}
|
|
46
|
}
|
|
47
|
if (arg1)
|
|
48
|
{
|
|
49
|
var _highlight_col = -1;
|
|
50
|
if (!other.auto_color)
|
|
51
|
_highlight_col = other.highlight_color;
|
|
52
|
var _highlight = scr_sprhighlightscr_sprhighlight
function scr_sprhighlight(arg0, arg1 = -1, arg2 = false)
{
var __highlight = instance_create(arg0.x, arg0.y, obj_sprhighlight);
__highlight.target = arg0;
__highlight.outline_only = arg2;
if (arg1 == -1)
__highlight.image_blend = scr_get_outline_color(arg0);
else
__highlight.image_blend = arg1;
return __highlight;
} (id, _highlight_col);
|
|
53
|
_highlight.darkness = 1;
|
|
54
|
_highlight.image_alpha = daddy.actind;
|
|
55
|
}
|
|
56
|
}
|
|
57
|
exit;
|
|
58
|
};
|
|
59
|
|
|
60
|
layerarray = layer_get_all();
|
|
61
|
shelvesinit = 0;
|
|
62
|
sprite_array_size = -1;
|
|
63
|
legendmarker = [];
|
|
64
|
var legendmarkerdepth = layer_get_depth("LEGEND_MARKERS");
|
|
65
|
if (layer_exists("LEGEND_MARKERS"))
|
|
66
|
{
|
|
67
|
for (var i = 0; i < array_length(layerarray); i++)
|
|
68
|
{
|
|
69
|
if (layer_get_name(layerarray[i]) == "LEGEND_MARKERS")
|
|
70
|
{
|
|
71
|
elements = layer_get_all_elements(layerarray[i]);
|
|
72
|
for (var j = 0; j < array_length(elements); j++)
|
|
73
|
{
|
|
74
|
if (layer_get_element_type(elements[j]) == 4)
|
|
75
|
{
|
|
76
|
sprite_array_size++;
|
|
77
|
legendmarker[sprite_array_size] = instance_create(layer_sprite_get_x(elements[j]), layer_sprite_get_y(elements[j]), obj_marker);
|
|
78
|
legendmarker[sprite_array_size].sprite_index = layer_sprite_get_sprite(elements[j]);
|
|
79
|
legendmarker[sprite_array_size].image_xscale = layer_sprite_get_xscale(elements[j]);
|
|
80
|
legendmarker[sprite_array_size].image_yscale = layer_sprite_get_yscale(elements[j]);
|
|
81
|
with (legendmarker[sprite_array_size])
|
|
82
|
{
|
|
83
|
depth = legendmarkerdepth;
|
|
84
|
image_blend = c_black;
|
|
85
|
image_alpha = 0;
|
|
86
|
}
|
|
87
|
layer_sprite_destroy(elements[j]);
|
|
88
|
}
|
|
89
|
}
|
|
90
|
}
|
|
91
|
if (layer_get_name(layerarray[i]) == "LEGEND_MARKERS_FG")
|
|
92
|
{
|
|
93
|
elements = layer_get_all_elements(layerarray[i]);
|
|
94
|
for (var j = 0; j < array_length(elements); j++)
|
|
95
|
{
|
|
96
|
if (layer_get_element_type(elements[j]) == 4)
|
|
97
|
{
|
|
98
|
sprite_array_size++;
|
|
99
|
legendmarker[sprite_array_size] = instance_create(layer_sprite_get_x(elements[j]), layer_sprite_get_y(elements[j]), obj_marker);
|
|
100
|
legendmarker[sprite_array_size].sprite_index = layer_sprite_get_sprite(elements[j]);
|
|
101
|
legendmarker[sprite_array_size].image_xscale = layer_sprite_get_xscale(elements[j]);
|
|
102
|
legendmarker[sprite_array_size].image_yscale = layer_sprite_get_yscale(elements[j]);
|
|
103
|
with (legendmarker[sprite_array_size])
|
|
104
|
{
|
|
105
|
depth = 5000;
|
|
106
|
image_blend = c_black;
|
|
107
|
image_alpha = 0;
|
|
108
|
}
|
|
109
|
layer_sprite_destroy(elements[j]);
|
|
110
|
}
|
|
111
|
}
|
|
112
|
}
|
|
113
|
}
|
|
114
|
}
|
|
115
|
if (instance_exists(obj_dw_churchb_bellroom))
|
|
116
|
{
|
|
117
|
targdepth = obj_dw_churchb_bellroom.depth - 1;
|
|
118
|
var bgmark = scr_marker_extscr_marker_ext
function scr_marker_ext(arg0, arg1, arg2, arg3 = 1, arg4 = 1, arg5 = 0, arg6 = 0, arg7 = 16777215, arg8 = depth, arg9 = false, arg10 = -1, arg11 = 1)
{
var thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
depth = arg8;
sprite_index = arg2;
image_speed = arg5;
image_xscale = arg3;
image_yscale = arg4;
image_index = arg6;
image_blend = arg7;
image_alpha = arg11;
if (arg9)
scr_depth_alt();
}
if (arg10 > 0)
scr_doom(thismarker, arg10);
return thismarker;
}
function scr_marker_fromasset(arg0, arg1 = depth, arg2 = false)
{
if (is_undefined(arg0))
{
debug_message("Warning: scr_marker_fromasset() sprite_instance didn't exist");
return -4;
}
var sprite = layer_sprite_get_sprite(arg0);
var index = layer_sprite_get_index(arg0);
var imagespeed = layer_sprite_get_speed(arg0);
var xscale = layer_sprite_get_xscale(arg0);
var yscale = layer_sprite_get_yscale(arg0);
var angle = layer_sprite_get_angle(arg0);
var blend = layer_sprite_get_blend(arg0);
var alpha = layer_sprite_get_alpha(arg0);
var xloc = layer_sprite_get_x(arg0);
var yloc = layer_sprite_get_y(arg0);
var thismarker = instance_create_depth(xloc, yloc, arg1, obj_marker);
with (thismarker)
{
sprite_index = sprite;
image_index = index;
image_speed = imagespeed;
image_xscale = xscale;
image_yscale = yscale;
image_angle = angle;
image_blend = blend;
image_alpha = alpha;
if (arg2)
scr_depth_alt(id, arg2);
}
return thismarker;
}
function scr_assetgetinfo(arg0)
{
var sprite = layer_sprite_get_sprite(arg0);
var index = layer_sprite_get_index(arg0);
var xloc = layer_sprite_get_x(arg0);
var yloc = layer_sprite_get_y(arg0);
var xscale = layer_sprite_get_xscale(arg0);
var yscale = layer_sprite_get_yscale(arg0);
var angle = layer_sprite_get_angle(arg0);
var blend = layer_sprite_get_blend(arg0);
var alpha = layer_sprite_get_alpha(arg0);
var imagespeed = layer_sprite_get_speed(arg0);
return [sprite, index, xloc, yloc, xscale, yscale, angle, blend, alpha, imagespeed];
} (0, 0, spr_pxwhite, room_width, room_height, undefined, undefined, c_black, targdepth);
|
|
119
|
array_push(legendmarker, bgmark);
|
|
120
|
}
|
|
121
|
if (tiles_only)
|
|
122
|
{
|
|
123
|
}
|
|
124
|
if (room == room_dw_churchc_superprophecies)
|
|
125
|
shadows = false;
|