1 |
if (scr_debug()) |
2 |
{ |
3 |
} |
4 |
if (drawpic == 1) |
5 |
{ |
6 |
draw_sprite_ext(pic, 0, picx, picy, 1, 1, 0, c_white, ceil(con_alph * 4) / 4); |
7 |
draw_sprite_ext(picb, 0, picxb, picyb, 1, 1, 0, c_white, ceil(con_alphb * 4) / 4); |
8 |
} |
9 |
if (con == 3) |
10 |
{ |
11 |
pic = spr_introimage2; |
12 |
picb = 316; |
13 |
picyb = -50; |
14 |
con = 3.1; |
15 |
con_alphb = 0; |
16 |
contimer = -100; |
17 |
chunkfade = 0; |
18 |
drawpic = 1; |
19 |
flamecon = 0; |
20 |
flamesiner = 0; |
21 |
flamealph = 1; |
22 |
flamey = 0; |
23 |
global.typer = 41; |
24 |
} |
25 |
if (con == 3.1) |
26 |
{ |
27 |
if (con_alph < 1 && contimer < 200) |
28 |
con_alph += 0.01; |
29 |
flamesiner++; |
30 |
contimer++; |
31 |
if (contimer == 20) |
32 |
{ |
33 |
msgsetloc(0, When the LIGHT is subsumed by SHADOW"When the LIGHT is&subsumed by SHADOW", "obj_legend_neo_slash_Draw_0_gml_38_0" ); |
34 |
wx = 88; |
35 |
if (jp) |
36 |
wx = 62; |
37 |
w = instance_create(wx, 185, obj_writer); |
38 |
} |
39 |
if (contimer == 200) |
40 |
{ |
41 |
with (w) |
42 |
instance_destroy(); |
43 |
msgsetloc(0, When the FOUNTAINS fill the sky"When the FOUNTAINS fill the sky", "obj_legend_neo_slash_Draw_0_gml_46_0" ); |
44 |
wx = 37; |
45 |
if (jp) |
46 |
wx = 83; |
47 |
w = instance_create(wx, 185, obj_writer); |
48 |
} |
49 |
if (contimer >= 200 && contimer <= 300) |
50 |
{ |
51 |
if (con_alphb < 1) |
52 |
con_alphb += 0.02; |
53 |
if (picyb < 0) |
54 |
picyb += 0.5; |
55 |
if (picy < 80) |
56 |
picy += 0.5; |
57 |
} |
58 |
if (contimer == 400) |
59 |
{ |
60 |
flamecon = 1; |
61 |
flamealph = 0.7; |
62 |
wave_siner = 0; |
63 |
flameya = room_height - 30; |
64 |
flameyb = room_height; |
65 |
wave_maxa = sprite_get_height(spr_cutscene_27_3_fire_1); |
66 |
wave_maxb = sprite_get_height(spr_cutscene_27_3_fire_2); |
67 |
with (w) |
68 |
instance_destroy(); |
69 |
msgsetloc(0, All will fall into CHAOS."All will fall into CHAOS.", "obj_legend_neo_slash_Draw_0_gml_69_0" ); |
70 |
wx = 63; |
71 |
if (jp) |
72 |
wx = 55; |
73 |
w = instance_create(wx, 185, obj_writer); |
74 |
} |
75 |
if (contimer == 600) |
76 |
{ |
77 |
with (w) |
78 |
instance_destroy(); |
79 |
pic = picb; |
80 |
picy = picyb; |
81 |
pic = picb; |
82 |
con_alphb = 0; |
83 |
picb = 317; |
84 |
msgsetloc(0, The TITANS will take form from the FOUNTAINS"The TITANS will take&form from the FOUNTAINS", "obj_legend_neo_slash_Draw_0_gml_80_0" ); |
85 |
wx = 69; |
86 |
if (jp) |
87 |
wx = 65; |
88 |
w = instance_create(wx, 185, obj_writer); |
89 |
} |
90 |
if (contimer >= 600 && contimer <= 680) |
91 |
{ |
92 |
if (con_alphb < 1) |
93 |
con_alphb += 0.01; |
94 |
} |
95 |
if (contimer == 800) |
96 |
{ |
97 |
pic = picb; |
98 |
picy = picyb; |
99 |
pic = picb; |
100 |
con_alphb = 0; |
101 |
picb = 318; |
102 |
with (w) |
103 |
instance_destroy(); |
104 |
msgsetloc(0, And envelop the land in devastation." And envelop& the land in devastation.", "obj_legend_neo_slash_Draw_0_gml_99_0" ); |
105 |
wx = 43; |
106 |
if (jp) |
107 |
wx = 48; |
108 |
w = instance_create(wx, 185, obj_writer); |
109 |
} |
110 |
if (contimer >= 800 && contimer <= 980) |
111 |
{ |
112 |
if (con_alphb < 1) |
113 |
con_alphb += 0.01; |
114 |
} |
115 |
if (contimer >= 1030 && contimer <= 1130) |
116 |
{ |
117 |
with (w) |
118 |
instance_destroy(); |
119 |
con_alph = 0; |
120 |
if (con_alphb > 0) |
121 |
con_alphb -= 0.01; |
122 |
if (flamealph > 0) |
123 |
flamealph -= 0.01; |
124 |
} |
125 |
if (contimer == 1160) |
126 |
{ |
127 |
contimer = 0; |
128 |
con = 4; |
129 |
} |
130 |
if (flamecon == 1) |
131 |
{ |
132 |
if (flameya > (room_height - wave_maxa)) |
133 |
flameya -= 1.5; |
134 |
if (flameyb > (room_height - wave_maxb)) |
135 |
flameyb--; |
136 |
thickness = 2; |
137 |
wave_siner++; |
138 |
flamesiner++; |
139 |
draw_set_alpha(flamealph); |
140 |
for (i = 0; i < wave_maxa; i += thickness) |
141 |
draw_sprite_part(spr_cutscene_27_3_fire_1, 0, 0, i * thickness, 400, thickness + 2, -10 + (sin((wave_siner + (i * 8)) / 30) * 12), (i * thickness) + flameya + (sin(flamesiner / 16) * 3)); |
142 |
draw_set_alpha(1); |
143 |
} |
144 |
} |
145 |
if (con == 4) |
146 |
{ |
147 |
con = 5; |
148 |
contimer = 0; |
149 |
pic = spr_cutscene_27_4; |
150 |
picb = 322; |
151 |
con_alph = 0; |
152 |
con_alphb = 0; |
153 |
picx = 48; |
154 |
picy = 60; |
155 |
picxb = 48; |
156 |
picyb = 60; |
157 |
global.typer = 41; |
158 |
} |
159 |
if (con == 5) |
160 |
{ |
161 |
contimer++; |
162 |
if (contimer == 30) |
163 |
{ |
164 |
msgsetloc(0, The surviving Darkners, crushed by the darkness"The surviving Darkners,&crushed by the darkness", "obj_legend_neo_slash_Draw_0_gml_167_0" ); |
165 |
wx = 69; |
166 |
if (jp) |
167 |
wx = 58; |
168 |
w = instance_create(wx, 185, obj_writer); |
169 |
} |
170 |
if (contimer <= 100) |
171 |
{ |
172 |
if (con_alph <= 1) |
173 |
con_alph += 0.01; |
174 |
} |
175 |
if (contimer == 240) |
176 |
{ |
177 |
with (w) |
178 |
instance_destroy(); |
179 |
msgsetloc(0, Will slowly, one by one, turn into statues..."Will slowly, one by one,&turn into statues...", "obj_legend_neo_slash_Draw_0_gml_180_0" ); |
180 |
wx = 67; |
181 |
if (jp) |
182 |
wx = 55; |
183 |
w = instance_create(wx, 185, obj_writer); |
184 |
} |
185 |
if (contimer >= 240 && contimer <= 360) |
186 |
{ |
187 |
if (con_alphb <= 1) |
188 |
con_alphb += 0.01; |
189 |
} |
190 |
if (contimer == 420) |
191 |
{ |
192 |
pic = picb; |
193 |
picb = 323; |
194 |
con_alphb = 0; |
195 |
with (w) |
196 |
instance_destroy(); |
197 |
msgsetloc(0, Leaving the Lightners to fend for themselves"Leaving the Lightners&to fend for themselves", "obj_legend_neo_slash_Draw_0_gml_196_0" ); |
198 |
wx = 73; |
199 |
if (jp) |
200 |
wx = 58; |
201 |
w = instance_create(wx, 185, obj_writer); |
202 |
} |
203 |
if (contimer >= 420 && contimer <= 520) |
204 |
{ |
205 |
if (con_alphb <= 1) |
206 |
con_alphb += 0.01; |
207 |
} |
208 |
if (contimer == 600) |
209 |
{ |
210 |
pic = picb; |
211 |
picb = 324; |
212 |
con_alphb = 0; |
213 |
with (w) |
214 |
instance_destroy(); |
215 |
msgsetloc(0, Lost eternally in an endless night..."Lost eternally in an& endless night...", "obj_legend_neo_slash_Draw_0_gml_211_0" ); |
216 |
wx = 81; |
217 |
if (jp) |
218 |
wx = 69; |
219 |
w = instance_create(wx, 185, obj_writer); |
220 |
} |
221 |
if (contimer >= 600 && contimer <= 700) |
222 |
{ |
223 |
if (con_alphb <= 1) |
224 |
con_alphb += 0.01; |
225 |
} |
226 |
if (contimer == 840) |
227 |
{ |
228 |
pic = picb; |
229 |
con_alphb = 0; |
230 |
with (w) |
231 |
instance_destroy(); |
232 |
msgsetloc(0, Is that your idea of paradise?"Is that your idea& of paradise?", "obj_legend_neo_slash_Draw_0_gml_225_0" ); |
233 |
snd_volume(global.currentsong[1], 0, 200); |
234 |
wx = 103; |
235 |
if (jp) |
236 |
wx = 90; |
237 |
w = instance_create(wx, 185, obj_writer); |
238 |
} |
239 |
if (contimer >= 840) |
240 |
con_alph -= 0.01; |
241 |
if (contimer == 1080) |
242 |
instance_create(0, 0, obj_fadeout); |
243 |
if (contimer == 1100 && skipped == 0) |
244 |
{ |
245 |
snd_free_all(); |
246 |
global.flag[6 disable_text_skip] = 0; |
247 |
instance_create(0, 0, obj_persistentfadein); |
248 |
if (scr_sideb_get_phasescr_sideb_get_phasefunction scr_sideb_get_phase()
{
var phase = 0;
if ( global.flag[916 snowgrave_fail] == 0)
{
if ( global.flag[915 snowgrave_plot] > 0 && global.flag[915 snowgrave_plot] < 4)
phase = 1;
if ( global.flag[915 snowgrave_plot] >= 4 && global.flag[915 snowgrave_plot] < 7)
phase = 2;
if ( global.flag[915 snowgrave_plot] >= 7 && global.flag[915 snowgrave_plot] < 20)
phase = 3;
if ( global.flag[915 snowgrave_plot] >= 20)
phase = 4;
}
return phase;
} () < 2) |
249 |
room_goto(room_dw_mansion_top_post ); |
250 |
else |
251 |
room_goto(room_dw_mansion_top ); |
252 |
} |
253 |
} |
254 |
if (border == 1) |
255 |
{ |
256 |
draw_set_color(c_black); |
257 |
draw_rectangle(-10, -10, 330, 27, false); |
258 |
draw_rectangle(-10, -10, 59, 300, false); |
259 |
draw_rectangle(400, -10, 260, 300, false); |
260 |
draw_rectangle(-10, 400, 330, 138, false); |
261 |
} |
262 |
if (border == 2) |
263 |
{ |
264 |
draw_set_color(c_black); |
265 |
draw_rectangle(-10, 180, 999, 482, false); |
266 |
} |
267 |
if (chunkfade == 0 && chunkamt > 0) |
268 |
chunkamt -= fadespeed; |
269 |
if (chunkfade == 1 && chunkamt < 1) |
270 |
chunkamt += fadespeed; |
271 |
draw_set_color(fadecolor); |
272 |
alph = 0; |
273 |
if (chunkamt >= 0.25) |
274 |
alph = 0.25; |
275 |
if (chunkamt >= 0.5) |
276 |
alph = 0.5; |
277 |
if (chunkamt >= 0.75) |
278 |
alph = 0.75; |
279 |
if (chunkamt >= 1) |
280 |
alph = 1; |
281 |
draw_set_alpha(alph); |
282 |
draw_rectangle(-10, -10, 330, 330, false); |
283 |
draw_set_alpha(1); |
284 |
if (ingame == 0) |
285 |
{ |
286 |
if (button1_p() && skipped == 0) |
287 |
{ |
288 |
skipped = 1; |
289 |
skiptimer = 0; |
290 |
f = instance_create(0, 0, obj_fadeout); |
291 |
f.fadespeed = 0.08; |
292 |
mus_volume(global.currentsong[1], 0, 15); |
293 |
} |
294 |
if (skipped == 1) |
295 |
skiptimer += 1; |
296 |
if (skiptimer == 19) |
297 |
{ |
298 |
snd_free(global.currentsong[0]); |
299 |
global.flag[6 disable_text_skip] = 0; |
300 |
} |
301 |
if (skiptimer == 20) |
302 |
room_goto(PLACE_LOGO ); |
303 |
} |