1 |
if (con == 0) |
2 |
{ |
3 |
con = 1; |
4 |
alarm[4] = 90; |
5 |
} |
6 |
if (con == 2) |
7 |
{ |
8 |
image_speed = 0.25; |
9 |
con = 3; |
10 |
alarm[4] = 12; |
11 |
} |
12 |
if (con == 4) |
13 |
{ |
14 |
image_speed = 0; |
15 |
image_index = 0; |
16 |
con = 5; |
17 |
alarm[4] = 70; |
18 |
} |
19 |
if (con == 6) |
20 |
{ |
21 |
image_speed = 0.334; |
22 |
con = 7; |
23 |
alarm[4] = 20; |
24 |
} |
25 |
if (con == 8) |
26 |
{ |
27 |
image_index = 0; |
28 |
image_speed = 0; |
29 |
con = 9; |
30 |
alarm[4] = 70; |
31 |
remx = x; |
32 |
remy = y; |
33 |
shaketimer = 0; |
34 |
} |
35 |
if (con == 10) |
36 |
{ |
37 |
con = 11; |
38 |
image_speed = 0.5; |
39 |
alarm[4] = 60; |
40 |
} |
41 |
if (con == 11) |
42 |
{ |
43 |
shaketimer += 0.05; |
44 |
x = (remx + random(shaketimer / 2)) - random(shaketimer / 2); |
45 |
y = (remy + random(shaketimer / 4)) - random(shaketimer / 4); |
46 |
} |
47 |
if (con == 12) |
48 |
{ |
49 |
x = remx + 10; |
50 |
y = remy + 20; |
51 |
underbed = scr_markerscr_markerfunction scr_marker(arg0, arg1, arg2)
{
thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
sprite_index = arg2;
image_speed = 0;
}
return thismarker;
} (remx, remy, spr_dkris_bed2); |
52 |
underbed.depth = 100000; |
53 |
sprite_index = spr_dkris_ground; |
54 |
image_index = 2; |
55 |
snd_play(snd_heavyswing); |
56 |
image_speed = 0; |
57 |
hspeed = -6; |
58 |
friction = 0.3; |
59 |
con = 13; |
60 |
alarm[4] = 7; |
61 |
} |
62 |
if (con == 14) |
63 |
{ |
64 |
gravity = 1; |
65 |
con = 15; |
66 |
alarm[4] = 5; |
67 |
} |
68 |
if (con == 16) |
69 |
{ |
70 |
gravity = 0; |
71 |
friction = 0.4; |
72 |
vspeed = 0; |
73 |
image_index = 0; |
74 |
snd_play(snd_impact); |
75 |
instance_create(0, 0, obj_shake); |
76 |
con = 17; |
77 |
alarm[4] = 90; |
78 |
} |
79 |
if (con == 18) |
80 |
{ |
81 |
sprite_index = spr_dkris_ground; |
82 |
image_index = 1; |
83 |
x = 180; |
84 |
y = 119; |
85 |
con = 19; |
86 |
alarm[4] = 90; |
87 |
scr_minishakeobjscr_minishakeobjfunction scr_minishakeobj()
{
shakeobj = instance_create(x, y, obj_shakeobj);
shakeobj.target = id;
shakeobj.shakeamt = 4;
shakeobj.shakereduct = 1;
with (shakeobj)
event_user(0);
} (); |
88 |
} |
89 |
if (con == 20) |
90 |
{ |
91 |
snd_play(snd_noise); |
92 |
sprite_index = spr_dkris_dl; |
93 |
x += 5; |
94 |
y -= 12; |
95 |
scr_minishakeobjscr_minishakeobjfunction scr_minishakeobj()
{
shakeobj = instance_create(x, y, obj_shakeobj);
shakeobj.target = id;
shakeobj.shakeamt = 4;
shakeobj.shakereduct = 1;
with (shakeobj)
event_user(0);
} (); |
96 |
image_index = 0; |
97 |
con = 21; |
98 |
alarm[4] = 60; |
99 |
} |
100 |
if (con == 22) |
101 |
{ |
102 |
con = 23; |
103 |
goalx = 153; |
104 |
goaly = 125; |
105 |
stepcycle = 0; |
106 |
stepmax = 8; |
107 |
stepx = (goalx - x) / stepmax; |
108 |
stepy = (goaly - y) / stepmax; |
109 |
alarm[4] = 50; |
110 |
} |
111 |
if (con == 24) |
112 |
{ |
113 |
x += stepx; |
114 |
y += stepy; |
115 |
snd_play(snd_step1); |
116 |
image_index = 1; |
117 |
scr_minishakeobjscr_minishakeobjfunction scr_minishakeobj()
{
shakeobj = instance_create(x, y, obj_shakeobj);
shakeobj.target = id;
shakeobj.shakeamt = 4;
shakeobj.shakereduct = 1;
with (shakeobj)
event_user(0);
} (); |
118 |
con = 25; |
119 |
alarm[4] = 15; |
120 |
} |
121 |
if (con == 26) |
122 |
{ |
123 |
image_index = 0; |
124 |
stepcycle += 1; |
125 |
if (stepcycle >= stepmax) |
126 |
{ |
127 |
con = 27; |
128 |
alarm[4] = 30; |
129 |
} |
130 |
else |
131 |
{ |
132 |
con = 23; |
133 |
alarm[4] = 20; |
134 |
} |
135 |
} |
136 |
if (con == 28) |
137 |
{ |
138 |
x = 158; |
139 |
y = 125; |
140 |
scr_minishakeobjscr_minishakeobjfunction scr_minishakeobj()
{
shakeobj = instance_create(x, y, obj_shakeobj);
shakeobj.target = id;
shakeobj.shakeamt = 4;
shakeobj.shakereduct = 1;
with (shakeobj)
event_user(0);
} (); |
141 |
sprite_index = spr_dkris_dr; |
142 |
snd_play(snd_step1); |
143 |
con = 29; |
144 |
alarm[4] = 60; |
145 |
} |
146 |
if (con == 30) |
147 |
{ |
148 |
sprite_index = spr_dkris_readyhand; |
149 |
image_index = 0; |
150 |
image_speed = 0.1; |
151 |
con = 31; |
152 |
alarm[4] = 150; |
153 |
} |
154 |
if (con == 32) |
155 |
{ |
156 |
image_speed = 0; |
157 |
con = 33; |
158 |
alarm[4] = 30; |
159 |
} |
160 |
if (con == 34) |
161 |
{ |
162 |
flashobj = 0; |
163 |
image_index = 0; |
164 |
sprite_index = spr_dkris_grabheart; |
165 |
image_speed = 0.25; |
166 |
animtimer = 0; |
167 |
htimer = 0; |
168 |
remx = x; |
169 |
remy = y; |
170 |
con = 33.1; |
171 |
alarm[4] = 20; |
172 |
} |
173 |
if (con == 33.1) |
174 |
{ |
175 |
animtimer += 1; |
176 |
if (animtimer == 13) |
177 |
snd_play(snd_heavyswing); |
178 |
if (animtimer == 14) |
179 |
{ |
180 |
snd_play(snd_grab); |
181 |
snd_play(snd_hurt1); |
182 |
instance_create(0, 0, obj_shake); |
183 |
scr_minishakeobjscr_minishakeobjfunction scr_minishakeobj()
{
shakeobj = instance_create(x, y, obj_shakeobj);
shakeobj.target = id;
shakeobj.shakeamt = 4;
shakeobj.shakereduct = 1;
with (shakeobj)
event_user(0);
} (); |
184 |
} |
185 |
} |
186 |
if (con == 34.1) |
187 |
{ |
188 |
image_speed = 0.4; |
189 |
sprite_index = spr_dkris_grabscream; |
190 |
scr_minishakeobjscr_minishakeobjfunction scr_minishakeobj()
{
shakeobj = instance_create(x, y, obj_shakeobj);
shakeobj.target = id;
shakeobj.shakeamt = 4;
shakeobj.shakereduct = 1;
with (shakeobj)
event_user(0);
} (); |
191 |
alarm[4] = 60; |
192 |
con = 35; |
193 |
shakeamt = 0; |
194 |
} |
195 |
if (con == 35) |
196 |
{ |
197 |
htimer += 1; |
198 |
if (htimer == 1) |
199 |
snd_play(snd_hurt1); |
200 |
if (htimer >= 8) |
201 |
htimer = 0; |
202 |
x = (remx + random(0.8)) - random(0.8); |
203 |
y = (remy + random(0.8)) - random(0.8); |
204 |
} |
205 |
if (con == 36) |
206 |
{ |
207 |
x = remx; |
208 |
y = remy; |
209 |
gnoise = 0; |
210 |
image_index = 0; |
211 |
sprite_index = spr_dkris_pullheart; |
212 |
image_speed = 0.334; |
213 |
con = 37; |
214 |
alarm[4] = 20; |
215 |
} |
216 |
if (con == 37) |
217 |
{ |
218 |
if (image_index >= 2 && gnoise == 0) |
219 |
{ |
220 |
burst = instance_create(x + 2, y + 10, obj_heartburst); |
221 |
gnoise = 1; |
222 |
snd_play(snd_grab); |
223 |
snd_play(snd_break2); |
224 |
} |
225 |
} |
226 |
if (con == 38) |
227 |
{ |
228 |
image_speed = 0; |
229 |
con = 37.1; |
230 |
alarm[4] = 30; |
231 |
} |
232 |
if (con == 38.1) |
233 |
{ |
234 |
sprite_index = spr_dkris_glowheart; |
235 |
con = 37.2; |
236 |
image_index = 0; |
237 |
image_speed = 0.2; |
238 |
snd_play(snd_break2); |
239 |
alarm[4] = 30; |
240 |
} |
241 |
if (con == 38.2) |
242 |
{ |
243 |
image_speed = 0; |
244 |
con = 39; |
245 |
alarm[4] = 70; |
246 |
} |
247 |
if (con == 40) |
248 |
{ |
249 |
x = 158; |
250 |
y = 125; |
251 |
sprite_index = spr_dkris_heartwalk; |
252 |
image_speed = 0.1; |
253 |
goalx = wagon.x - 47; |
254 |
goaly = wagon.y - 9; |
255 |
stepx = (goalx - x) / 100; |
256 |
stepy = (goaly - y) / 100; |
257 |
con = 41; |
258 |
steps = 0; |
259 |
samt = 0; |
260 |
} |
261 |
if (con == 41) |
262 |
{ |
263 |
samt += 1; |
264 |
if (samt == 10) |
265 |
snd_play(snd_step1); |
266 |
if (samt == 20) |
267 |
samt = 0; |
268 |
steps += 1; |
269 |
x += stepx; |
270 |
y += stepy; |
271 |
if (steps >= 100) |
272 |
{ |
273 |
con = 52; |
274 |
alarm[4] = 40; |
275 |
x = goalx; |
276 |
y = goaly; |
277 |
image_speed = 0; |
278 |
image_index = 0; |
279 |
} |
280 |
} |
281 |
if (con == 53) |
282 |
{ |
283 |
with (wagon) |
284 |
visible = 0; |
285 |
sprite_index = spr_dkris_heartthrow; |
286 |
image_index = 0; |
287 |
image_speed = 0.25; |
288 |
con = 54; |
289 |
alarm[4] = 40; |
290 |
} |
291 |
if (con == 54) |
292 |
{ |
293 |
if (image_index == 5) |
294 |
{ |
295 |
snd_play(snd_impact); |
296 |
snd_play(snd_hurt1); |
297 |
snd_play(snd_locker); |
298 |
instance_create(0, 0, obj_shake); |
299 |
} |
300 |
} |
301 |
if (con == 55) |
302 |
{ |
303 |
heartwagon = 1; |
304 |
sprite_index = spr_dkris_heartthrow_post; |
305 |
con = 56; |
306 |
alarm[4] = 30; |
307 |
} |
308 |
if (con == 57) |
309 |
{ |
310 |
x = 158; |
311 |
y = 125; |
312 |
sprite_index = spr_dkris_ul; |
313 |
image_speed = 0; |
314 |
goalx = wagon.x - 47; |
315 |
goaly = wagon.y - 9; |
316 |
stepx = (goalx - x) / 100; |
317 |
stepy = (goaly - y) / 100; |
318 |
x = goalx; |
319 |
y = goaly; |
320 |
steps = 0; |
321 |
samt = 0; |
322 |
con = 58; |
323 |
alarm[4] = 30; |
324 |
} |
325 |
if (con == 59) |
326 |
{ |
327 |
samt += 1; |
328 |
if (samt == 10) |
329 |
snd_play(snd_step1); |
330 |
if (samt == 20) |
331 |
samt = 0; |
332 |
image_speed = 0.1; |
333 |
x -= stepx; |
334 |
y -= stepy; |
335 |
steps += 1; |
336 |
if (steps >= 100) |
337 |
{ |
338 |
image_index = 0; |
339 |
image_speed = 0; |
340 |
con = 60; |
341 |
alarm[4] = 30; |
342 |
} |
343 |
} |
344 |
if (con == 61) |
345 |
{ |
346 |
sprite_index = spr_dkris_ur_pullknife; |
347 |
image_speed = 0; |
348 |
image_index = 0; |
349 |
con = 62; |
350 |
alarm[4] = 30; |
351 |
} |
352 |
if (con == 63) |
353 |
{ |
354 |
image_speed = 0.1; |
355 |
con = 64; |
356 |
alarm[4] = 285; |
357 |
} |
358 |
if (con == 65) |
359 |
{ |
360 |
eyeflash = scr_markerscr_markerfunction scr_marker(arg0, arg1, arg2)
{
thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
sprite_index = arg2;
image_speed = 0;
}
return thismarker;
} (x + 15, y + 9, spr_asgore_eyeflash_serious); |
361 |
eyeflash.image_blend = c_red; |
362 |
with (eyeflash) |
363 |
image_speed = 0.2; |
364 |
image_speed = 0; |
365 |
snd_play(snd_break2); |
366 |
con = 66; |
367 |
alarm[4] = 25; |
368 |
} |
369 |
if (con == 67) |
370 |
{ |
371 |
with (eyeflash) |
372 |
instance_destroy(); |
373 |
con = 68; |
374 |
alarm[4] = 60; |
375 |
} |
376 |
if (con == 69) |
377 |
{ |
378 |
pix = scr_markerscr_markerfunction scr_marker(arg0, arg1, arg2)
{
thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
sprite_index = arg2;
image_speed = 0;
}
return thismarker;
} (-10, -10, spr_pixel_white); |
379 |
with (pix) |
380 |
{ |
381 |
image_blend = c_black; |
382 |
image_xscale = 700; |
383 |
image_yscale = 700; |
384 |
} |
385 |
con = 70; |
386 |
alarm[4] = 60; |
387 |
} |
388 |
if (con == 71) |
389 |
room_goto(PLACE_LOGO ); |
390 |
if (heartwagon == 1) |
391 |
{ |
392 |
if (left_p() && heartx > -4) |
393 |
heartx -= 1; |
394 |
if (right_p() && heartx < 4) |
395 |
heartx += 1; |
396 |
if (down_p() && hearty < 4) |
397 |
hearty += 1; |
398 |
if (up_p() && hearty > -4) |
399 |
hearty -= 1; |
400 |
} |
401 |
if (heartwagon == 2) |
402 |
{ |
403 |
moved = 0; |
404 |
if (left_p()) |
405 |
moved = 1; |
406 |
if (right_p()) |
407 |
moved = 1; |
408 |
if (down_p()) |
409 |
moved = 1; |
410 |
if (up_p()) |
411 |
moved = 1; |
412 |
if (moved == 1 && shaketimer <= 0) |
413 |
{ |
414 |
shaketimer = 24; |
415 |
cageamt = 4; |
416 |
snd_play(snd_noise); |
417 |
} |
418 |
if (cageamt > 0) |
419 |
cageamt -= 0.5; |
420 |
else |
421 |
cageamt = 0; |
422 |
shaketimer -= 1; |
423 |
} |