| 1 |
var scroll_speed_current; |
| 2 |
if (room == rm_waterfall_og) |
| 3 |
{ |
| 4 |
if ((scene >= 12 && global.snowdin_flag[13] == 1) || (global.snowdin_flag[13] >= 2 && scene >= 2)) |
| 5 |
{ |
| 6 |
if (scroll_speed > -8) |
| 7 |
scroll_speed -= 0.25; |
| 8 |
} |
| 9 |
scroll_speed_current = ceil(scroll_speed); |
| 10 |
var num = tile_get_count(); |
| 11 |
for (var i = 0; i < num; i++) |
| 12 |
{ |
| 13 |
var tile = tile_get_id(i); |
| 14 |
var tile_y = tile_get_y(tile); |
| 15 |
var tile_x = tile_get_x(tile); |
| 16 |
var tile_width = tile_get_width(tile); |
| 17 |
var tile_shift; |
| 18 |
switch (tile_get_depth(tile)) |
| 19 |
{ |
| 20 |
case 1000000: |
| 21 |
case 999999: |
| 22 |
tile_shift = scroll_speed_current * 0.5; |
| 23 |
break; |
| 24 |
case -150: |
| 25 |
tile_shift = scroll_speed_current; |
| 26 |
break; |
| 27 |
case -200: |
| 28 |
tile_shift = scroll_speed_current * 1.5; |
| 29 |
break; |
| 30 |
} |
| 31 |
tile_set_position(tile, tile_x + tile_shift, tile_y); |
| 32 |
if (tile_x <= -480) |
| 33 |
{ |
| 34 |
var diff_x = abs(tile_x) - 480; |
| 35 |
tile_set_position(tile, ((room_width - 480) + tile_shift) - diff_x, tile_y); |
| 36 |
} |
| 37 |
} |
| 38 |
} |
| 39 |
if (instance_exists(obj_duck)) |
| 40 |
obj_duck.x += (scroll_speed_current * 1.5); |
| 41 |
if (global.snowdin_flag[13] == 1) |
| 42 |
{ |
| 43 |
var martlet = 1570; |
| 44 |
switch (scene) |
| 45 |
{ |
| 46 |
case 0: |
| 47 |
if (scr_timerscr_timerfunction scr_timer()
{
if (timer > 0)
{
timer--;
return false;
}
else
{
return true;
}
} ()) |
| 48 |
{ |
| 49 |
audio_play_sound(snd_martlet_lands, 1, 0); |
| 50 |
scene = 1; |
| 51 |
} |
| 52 |
break; |
| 53 |
case 1: |
| 54 |
with (martlet) |
| 55 |
{ |
| 56 |
if (y < 130) |
| 57 |
{ |
| 58 |
y += 3; |
| 59 |
} |
| 60 |
else |
| 61 |
{ |
| 62 |
y = 157; |
| 63 |
other.scene = 2; |
| 64 |
sprite_index = spr_martlet_sit_down; |
| 65 |
image_index = 0; |
| 66 |
image_speed = 0.3; |
| 67 |
} |
| 68 |
} |
| 69 |
break; |
| 70 |
case 2: |
| 71 |
with (martlet) |
| 72 |
{ |
| 73 |
if (image_index >= 23) |
| 74 |
{ |
| 75 |
image_speed = 0; |
| 76 |
sprite_index = spr_martlet_sit; |
| 77 |
other.scene = 3; |
| 78 |
other.timer = 60; |
| 79 |
} |
| 80 |
} |
| 81 |
break; |
| 82 |
case 3: |
| 83 |
if (!scr_timerscr_timerfunction scr_timer()
{
if (timer > 0)
{
timer--;
return false;
}
else
{
return true;
}
} ()) |
| 84 |
exit; |
| 85 |
scr_textscr_textfunction scr_text()
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue);
} (); |
| 86 |
with (msg) |
| 87 |
{ |
| 88 |
sndfnt = 102; |
| 89 |
message[0] = "* So, hi!"; |
| 90 |
prt[0] = 312; |
| 91 |
} |
| 92 |
if (global.dialogue_open == false) |
| 93 |
{ |
| 94 |
scene++; |
| 95 |
timer = 45; |
| 96 |
} |
| 97 |
break; |
| 98 |
case 4: |
| 99 |
if (!scr_timerscr_timerfunction scr_timer()
{
if (timer > 0)
{
timer--;
return false;
}
else
{
return true;
}
} ()) |
| 100 |
exit; |
| 101 |
scr_textscr_textfunction scr_text()
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue);
} (); |
| 102 |
with (msg) |
| 103 |
{ |
| 104 |
sndfnt = 102; |
| 105 |
message[0] = "* So I was thinking."; |
| 106 |
message[1] = "* If Ava doesn't have# sails,"; |
| 107 |
message[2] = "* Does this still count as# sailing?"; |
| 108 |
prt[0] = 328; |
| 109 |
prt[1] = 338; |
| 110 |
prt[2] = 324; |
| 111 |
} |
| 112 |
if (!global.dialogue_open) |
| 113 |
{ |
| 114 |
scene = 4.5; |
| 115 |
timer = 80; |
| 116 |
} |
| 117 |
break; |
| 118 |
case 4.5: |
| 119 |
if (!scr_timerscr_timerfunction scr_timer()
{
if (timer > 0)
{
timer--;
return false;
}
else
{
return true;
}
} ()) |
| 120 |
exit; |
| 121 |
scr_textscr_textfunction scr_text()
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue);
} (); |
| 122 |
with (msg) |
| 123 |
{ |
| 124 |
sndfnt = 102; |
| 125 |
message[0] = "* Pretty smooth ride,# yeah? "; |
| 126 |
message[1] = "* My woodworking skills# aren't too shabby! "; |
| 127 |
message[2] = "* I suppose I should# thank my mentor. "; |
| 128 |
message[3] = "* Older fella by the name# of Chujin. Taught me# everything!"; |
| 129 |
message[4] = "* He... Well... Nevermind."; |
| 130 |
prt[0] = 312; |
| 131 |
prt[1] = 331; |
| 132 |
prt[2] = 321; |
| 133 |
prt[3] = 328; |
| 134 |
prt[4] = 329; |
| 135 |
} |
| 136 |
if (!global.dialogue_open) |
| 137 |
{ |
| 138 |
scene = 5; |
| 139 |
timer = 80; |
| 140 |
} |
| 141 |
break; |
| 142 |
case 5: |
| 143 |
if (!scr_timerscr_timerfunction scr_timer()
{
if (timer > 0)
{
timer--;
return false;
}
else
{
return true;
}
} ()) |
| 144 |
exit; |
| 145 |
scr_textscr_textfunction scr_text()
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue);
} (); |
| 146 |
with (msg) |
| 147 |
{ |
| 148 |
sndfnt = 102; |
| 149 |
ch_msg = 2; |
| 150 |
ch[1] = "Yes"; |
| 151 |
ch[2] = "No"; |
| 152 |
message[0] = "* Hey, so would you mind# answering a few# questions for me?"; |
| 153 |
message[1] = "* It's nothing big, it's# just a little quality# assurance questionnaire."; |
| 154 |
message[2] = "* Will you try it?"; |
| 155 |
prt[0] = 328; |
| 156 |
prt[1] = 328; |
| 157 |
prt[2] = 312; |
| 158 |
if (outcome == 1) |
| 159 |
{ |
| 160 |
message[3] = "* Great!"; |
| 161 |
message[4] = "* Question one:"; |
| 162 |
prt[3] = 318; |
| 163 |
prt[4] = 328; |
| 164 |
} |
| 165 |
if (outcome == 2) |
| 166 |
{ |
| 167 |
message[3] = "* Oh, yeah, no, that's# fine."; |
| 168 |
message[4] = "* It's just that, you# know, it might help me# keep my job."; |
| 169 |
message[5] = "* Even a bad review, it# just can't be, um, no# review."; |
| 170 |
message[6] = "* Look, I'll even fill it# out for you!"; |
| 171 |
message[7] = "* You won't even notice# I'm doing it, it'll# be fun!"; |
| 172 |
message[8] = "* Okay, question one:"; |
| 173 |
prt[3] = 320; |
| 174 |
prt[4] = 320; |
| 175 |
prt[5] = 338; |
| 176 |
prt[6] = 328; |
| 177 |
prt[7] = 328; |
| 178 |
prt[8] = 312; |
| 179 |
} |
| 180 |
} |
| 181 |
if (!global.dialogue_open) |
| 182 |
scene++; |
| 183 |
break; |
| 184 |
case 6: |
| 185 |
with (martlet) |
| 186 |
{ |
| 187 |
if (sprite_index != spr_martlet_sit_down) |
| 188 |
{ |
| 189 |
sprite_index = spr_martlet_sit_down; |
| 190 |
image_index = 23; |
| 191 |
image_speed = 0.3; |
| 192 |
} |
| 193 |
else if (image_index >= 40) |
| 194 |
{ |
| 195 |
image_speed = 0; |
| 196 |
sprite_index = spr_martlet_sit_book; |
| 197 |
other.scene++; |
| 198 |
} |
| 199 |
} |
| 200 |
break; |
| 201 |
case 7: |
| 202 |
scr_textscr_textfunction scr_text()
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue);
} (); |
| 203 |
if (!instance_exists(obj_dialoguebox_dummy)) |
| 204 |
instance_create(0, 0, obj_dialoguebox_dummy); |
| 205 |
with (msg) |
| 206 |
{ |
| 207 |
sndfnt = 102; |
| 208 |
message[0] = "* On a scale from 1-3..."; |
| 209 |
message[1] = "* How would you rate your# encounter with the# Royal Guard?"; |
| 210 |
message[2] = "* Please answer honestly!"; |
| 211 |
prt[0] = 328; |
| 212 |
prt[1] = 328; |
| 213 |
prt[2] = 328; |
| 214 |
ch_msg = 2; |
| 215 |
ch[1] = "1"; |
| 216 |
ch[2] = "2"; |
| 217 |
ch[3] = "3"; |
| 218 |
ch[4] = ""; |
| 219 |
if (outcome == 1) |
| 220 |
{ |
| 221 |
message[3] = "* Oh... was it that bad?# I'm sorry."; |
| 222 |
message[4] = "* Well, maybe it wasn't# really as bad as you# think it was!"; |
| 223 |
message[5] = "* It's one of those \"bad# in the moment but a good# laugh later\" things!"; |
| 224 |
message[6] = "* Let's keep going, maybe# you'll change your mind!"; |
| 225 |
prt[3] = 333; |
| 226 |
prt[4] = 338; |
| 227 |
prt[5] = 321; |
| 228 |
prt[6] = 328; |
| 229 |
} |
| 230 |
if (outcome == 2) |
| 231 |
{ |
| 232 |
message[3] = "* That sounds fair."; |
| 233 |
message[4] = "* I think 2 out of 3 is# an accurate rating of# my performance."; |
| 234 |
message[5] = "* Ya know, just in# general."; |
| 235 |
message[6] = "* ..."; |
| 236 |
message[7] = "* Where were we?"; |
| 237 |
prt[3] = 321; |
| 238 |
prt[4] = 338; |
| 239 |
prt[5] = 321; |
| 240 |
prt[6] = 321; |
| 241 |
prt[7] = 328; |
| 242 |
} |
| 243 |
if (outcome == 3) |
| 244 |
{ |
| 245 |
message[3] = "* Wait, really!?"; |
| 246 |
message[4] = "* I got a three!"; |
| 247 |
message[5] = "* I've never gotten a# three before!"; |
| 248 |
message[6] = "* Oh my goodly goodness!# I can't believe it I# got a three!"; |
| 249 |
message[7] = "* I have to tell# absolutely everyone!"; |
| 250 |
message[8] = "* Okay, sorry, got# carried away."; |
| 251 |
message[9] = "* Let's keep going!"; |
| 252 |
prt[3] = 333; |
| 253 |
prt[4] = 318; |
| 254 |
prt[5] = 312; |
| 255 |
prt[6] = 312; |
| 256 |
prt[7] = 312; |
| 257 |
prt[8] = 318; |
| 258 |
prt[9] = 328; |
| 259 |
} |
| 260 |
} |
| 261 |
if (!global.dialogue_open) |
| 262 |
scene++; |
| 263 |
break; |
| 264 |
case 8: |
| 265 |
scr_textscr_textfunction scr_text()
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue);
} (); |
| 266 |
with (msg) |
| 267 |
{ |
| 268 |
sndfnt = 102; |
| 269 |
message[0] = "* Question two:"; |
| 270 |
message[1] = "* On a scale from 1-2,# how would you rate..."; |
| 271 |
message[2] = "* ...the puzzles deployed# in Snowdin."; |
| 272 |
prt[0] = 328; |
| 273 |
prt[1] = 328; |
| 274 |
prt[2] = 328; |
| 275 |
ch_msg = 2; |
| 276 |
ch[1] = "1"; |
| 277 |
ch[2] = "2"; |
| 278 |
if (outcome == 1) |
| 279 |
{ |
| 280 |
message[3] = "* Oh. Yeah I was gonna,# like, complain about# that, or something."; |
| 281 |
message[4] = "* They don't really, um,# acknowledge my requests# for materials anymore."; |
| 282 |
message[5] = "* I wanted the molten# rocks to be way bigger.# It's a shame."; |
| 283 |
message[6] = "* How am I supposed to# make a quality puzzle# without materials!"; |
| 284 |
message[7] = "* I mean... the concepts# were good at least...# right?"; |
| 285 |
message[8] = "* You know what, let's# just move on."; |
| 286 |
prt[3] = 324; |
| 287 |
prt[4] = 323; |
| 288 |
prt[5] = 313; |
| 289 |
prt[6] = 315; |
| 290 |
prt[7] = 329; |
| 291 |
prt[8] = 328; |
| 292 |
} |
| 293 |
if (outcome == 2) |
| 294 |
{ |
| 295 |
color = true; |
| 296 |
col_modif[0] = 4235519; |
| 297 |
message[3] = "* Really!"; |
| 298 |
message[4] = "* Thanks, I made them# myself!"; |
| 299 |
message[5] = "* There's a reason I was# assigned to work under# the Royal Scientist!"; |
| 300 |
message_col[5][0] = " # # Royal Scientist "; |
| 301 |
message[6] = "* I mean, it's because I# got last choice of# station, but still!"; |
| 302 |
message[7] = "* You pick up a few# things guardin' all# that science stuff!"; |
| 303 |
message[8] = "* Anyway, back on topic!"; |
| 304 |
prt[3] = 333; |
| 305 |
prt[4] = 312; |
| 306 |
prt[5] = 318; |
| 307 |
prt[6] = 323; |
| 308 |
prt[7] = 312; |
| 309 |
prt[8] = 328; |
| 310 |
} |
| 311 |
} |
| 312 |
if (!global.dialogue_open) |
| 313 |
scene++; |
| 314 |
break; |
| 315 |
case 9: |
| 316 |
scr_textscr_textfunction scr_text()
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue);
} (); |
| 317 |
with (msg) |
| 318 |
{ |
| 319 |
sndfnt = 102; |
| 320 |
message[0] = "* Question three:"; |
| 321 |
message[1] = "* On a scale 1-4, how# would you rate the# au-di-tory ambi-an-#"; |
| 322 |
message[2] = "* What does that mean?"; |
| 323 |
message[3] = "* Okay, that's a new# question. Why do they# keep updating this?"; |
| 324 |
message[4] = "* Let's just forget the# questionnaire."; |
| 325 |
message[5] = "* I'll just put you# down as dead center# for the rest."; |
| 326 |
message[6] = "* That sound good? Yeah# that works."; |
| 327 |
message[7] = "* Just a 2 there... and a# 3... and a 2.15 here...# and 23, and we're done!"; |
| 328 |
prt[0] = 328; |
| 329 |
prt[1] = 311; |
| 330 |
prt[2] = 324; |
| 331 |
prt[3] = 311; |
| 332 |
prt[4] = 320; |
| 333 |
prt[5] = 328; |
| 334 |
prt[6] = 328; |
| 335 |
prt[7] = 312; |
| 336 |
} |
| 337 |
if (!global.dialogue_open) |
| 338 |
{ |
| 339 |
scene++; |
| 340 |
instance_destroy(obj_dialoguebox_dummy); |
| 341 |
} |
| 342 |
break; |
| 343 |
case 10: |
| 344 |
with (martlet) |
| 345 |
{ |
| 346 |
if (sprite_index != spr_martlet_sit_down) |
| 347 |
{ |
| 348 |
sprite_index = spr_martlet_sit_down; |
| 349 |
image_index = 46; |
| 350 |
image_speed = 0.3; |
| 351 |
} |
| 352 |
else if (image_index >= (image_number - 1)) |
| 353 |
{ |
| 354 |
image_speed = 0; |
| 355 |
sprite_index = spr_martlet_sit; |
| 356 |
other.scene++; |
| 357 |
} |
| 358 |
} |
| 359 |
break; |
| 360 |
case 11: |
| 361 |
scr_textscr_textfunction scr_text()
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue);
} (); |
| 362 |
with (msg) |
| 363 |
{ |
| 364 |
sndfnt = 102; |
| 365 |
message[0] = "* Oh, one more thing."; |
| 366 |
message[1] = "* I'm gonna need your# name for legal purposes."; |
| 367 |
message[2] = "* You know how it gets."; |
| 368 |
prt[0] = 321; |
| 369 |
prt[1] = 320; |
| 370 |
prt[2] = 320; |
| 371 |
ch_msg = 2; |
| 372 |
ch[1] = "It's Clover"; |
| 373 |
if (outcome == 1) |
| 374 |
{ |
| 375 |
message[3] = "* What a unique name! I# love it."; |
| 376 |
message[4] = "* So, Clover, let's talk# about Ava!"; |
| 377 |
message[5] = "* Isn't she great? I told# ya, sails like a dream# from a perfect lullaby!"; |
| 378 |
message[6] = "* Nice pace, pretty view,# and not a single leak!"; |
| 379 |
message[7] = "* Oh, well there's a# little one, but not too# many leaks!"; |
| 380 |
message[8] = "* We can just sit back,# and relax and-hey..."; |
| 381 |
message[9] = "* Do you hear an abnormal# amount of running water?"; |
| 382 |
prt[3] = 312; |
| 383 |
prt[4] = 328; |
| 384 |
prt[5] = 318; |
| 385 |
prt[6] = 318; |
| 386 |
prt[7] = 320; |
| 387 |
prt[8] = 328; |
| 388 |
prt[9] = 311; |
| 389 |
} |
| 390 |
} |
| 391 |
if (!global.dialogue_open) |
| 392 |
{ |
| 393 |
audio_sound_gain(snd_rapids, 1, 500); |
| 394 |
audio_sound_gain(snd_rock_roll, 0, 0); |
| 395 |
audio_play_sound(snd_rock_roll, 1, 0); |
| 396 |
audio_sound_gain(snd_rock_roll, 1, 1000); |
| 397 |
scr_audio_fade_outscr_audio_fade_outfunction scr_audio_fade_out(arg0, arg1)
{
var snd = arg0;
var fade_len = arg1;
if (!audio_is_playing(snd))
return false;
audio_sound_gain(snd, 0, fade_len);
if (instance_exists(obj_audio_fade_helper))
{
with (obj_audio_fade_helper)
{
if (audio_to_fade == snd)
return false;
}
}
with (instance_create(0, 0, obj_audio_fade_helper))
audio_to_fade = snd;
} (obj_radio.current_song, 2000); |
| 398 |
timer = 60; |
| 399 |
scene++; |
| 400 |
} |
| 401 |
break; |
| 402 |
case 12: |
| 403 |
if (scr_timerscr_timerfunction scr_timer()
{
if (timer > 0)
{
timer--;
return false;
}
else
{
return true;
}
} ()) |
| 404 |
scene++; |
| 405 |
break; |
| 406 |
case 13: |
| 407 |
scr_textscr_textfunction scr_text()
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue);
} (); |
| 408 |
with (msg) |
| 409 |
{ |
| 410 |
sndfnt = 102; |
| 411 |
message[0] = "* Well, we are in# Waterfall..."; |
| 412 |
message[1] = "* Is it just me or is the# river getting faster?"; |
| 413 |
message[2] = "* Well, if anything it# helps u-"; |
| 414 |
prt[0] = 320; |
| 415 |
prt[1] = 335; |
| 416 |
prt[2] = 320; |
| 417 |
if (message_current == 2) |
| 418 |
{ |
| 419 |
skippable = false; |
| 420 |
if (cutoff == string_length(message[message_current])) |
| 421 |
{ |
| 422 |
global.dialogue_open = false; |
| 423 |
with (martlet) |
| 424 |
{ |
| 425 |
if (sprite_index != spr_martlet_sit_surprise) |
| 426 |
{ |
| 427 |
sprite_index = spr_martlet_sit_surprise; |
| 428 |
image_index = 0; |
| 429 |
image_speed = 0.3; |
| 430 |
} |
| 431 |
} |
| 432 |
} |
| 433 |
} |
| 434 |
} |
| 435 |
if (!global.dialogue_open) |
| 436 |
scene++; |
| 437 |
break; |
| 438 |
case 14: |
| 439 |
with (martlet) |
| 440 |
{ |
| 441 |
if (image_index >= (image_number - 1)) |
| 442 |
{ |
| 443 |
image_speed = 0; |
| 444 |
image_index = image_number - 1; |
| 445 |
other.timer = 30; |
| 446 |
other.scene++; |
| 447 |
} |
| 448 |
} |
| 449 |
break; |
| 450 |
case 15: |
| 451 |
if (!scr_timerscr_timerfunction scr_timer()
{
if (timer > 0)
{
timer--;
return false;
}
else
{
return true;
}
} ()) |
| 452 |
exit; |
| 453 |
scr_textscr_textfunction scr_text()
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue);
} (); |
| 454 |
with (msg) |
| 455 |
{ |
| 456 |
sndfnt = 102; |
| 457 |
message[0] = "* UH OH!"; |
| 458 |
prt[0] = 333; |
| 459 |
skippable = false; |
| 460 |
message_timer = 30; |
| 461 |
} |
| 462 |
if (!global.dialogue_open) |
| 463 |
{ |
| 464 |
obj_radio.bgm = 161; |
| 465 |
global.radio_restart = true; |
| 466 |
audio_sound_gain(obj_radio.bgm, 1, 0); |
| 467 |
scene++; |
| 468 |
} |
| 469 |
break; |
| 470 |
case 16: |
| 471 |
with (martlet) |
| 472 |
{ |
| 473 |
if (sprite_index != spr_martlet_sit_cling) |
| 474 |
{ |
| 475 |
sprite_index = spr_martlet_sit_cling; |
| 476 |
image_index = 0; |
| 477 |
image_speed = 0.3; |
| 478 |
} |
| 479 |
else |
| 480 |
{ |
| 481 |
if (floor(image_index) == 7) |
| 482 |
y = 168; |
| 483 |
if (image_index >= (image_number - 1)) |
| 484 |
{ |
| 485 |
image_speed = 0; |
| 486 |
image_index = image_number - 1; |
| 487 |
other.HOTLAND_TRANSITION = true; |
| 488 |
other.scene++; |
| 489 |
} |
| 490 |
} |
| 491 |
} |
| 492 |
break; |
| 493 |
case 17: |
| 494 |
if (transition_x > -320) |
| 495 |
{ |
| 496 |
transition_x -= 8; |
| 497 |
} |
| 498 |
else |
| 499 |
{ |
| 500 |
room_goto(rm_hotland Hotland Ride); |
| 501 |
with (martlet) |
| 502 |
{ |
| 503 |
sprite_index = spr_martlet_cling_dark; |
| 504 |
image_speed = 0.4; |
| 505 |
y = 210; |
| 506 |
} |
| 507 |
scene++; |
| 508 |
} |
| 509 |
break; |
| 510 |
case 18: |
| 511 |
if (transition_x > -660) |
| 512 |
{ |
| 513 |
transition_x -= 8; |
| 514 |
} |
| 515 |
else |
| 516 |
{ |
| 517 |
HOTLAND_TRANSITION = false; |
| 518 |
transition_x = 320; |
| 519 |
timer = 12; |
| 520 |
obj_pl.y = 0; |
| 521 |
scene++; |
| 522 |
} |
| 523 |
break; |
| 524 |
case 19: |
| 525 |
if (!scr_timerscr_timerfunction scr_timer()
{
if (timer > 0)
{
timer--;
return false;
}
else
{
return true;
}
} ()) |
| 526 |
exit; |
| 527 |
scr_textscr_textfunction scr_text()
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue);
} (); |
| 528 |
with (msg) |
| 529 |
{ |
| 530 |
sndfnt = 102; |
| 531 |
message[0] = "* UM..."; |
| 532 |
message[1] = "* I might not have been# down this route before!"; |
| 533 |
message[2] = "* Hold on to something!"; |
| 534 |
prt[0] = 323; |
| 535 |
prt[1] = 323; |
| 536 |
prt[2] = 333; |
| 537 |
skippable = false; |
| 538 |
message_timer = 16; |
| 539 |
} |
| 540 |
if (!global.dialogue_open) |
| 541 |
{ |
| 542 |
scene++; |
| 543 |
timer = 25; |
| 544 |
} |
| 545 |
break; |
| 546 |
case 20: |
| 547 |
if (!scr_timerscr_timerfunction scr_timer()
{
if (timer > 0)
{
timer--;
return false;
}
else
{
return true;
}
} ()) |
| 548 |
exit; |
| 549 |
LAVA_TRANSITION = true; |
| 550 |
scene++; |
| 551 |
break; |
| 552 |
case 21: |
| 553 |
if (transition_x > -320) |
| 554 |
{ |
| 555 |
transition_x -= 8; |
| 556 |
} |
| 557 |
else |
| 558 |
{ |
| 559 |
room_goto(rm_lava_tubes Lava Tubes Ride (Crash)); |
| 560 |
with (martlet) |
| 561 |
{ |
| 562 |
y = 128; |
| 563 |
sprite_index = spr_martlet_wind; |
| 564 |
} |
| 565 |
scene++; |
| 566 |
} |
| 567 |
case 22: |
| 568 |
if (transition_x > -660) |
| 569 |
{ |
| 570 |
transition_x -= 9; |
| 571 |
} |
| 572 |
else |
| 573 |
{ |
| 574 |
LAVA_TRANSITION = false; |
| 575 |
timer = 60; |
| 576 |
transition_x = 320; |
| 577 |
scene++; |
| 578 |
} |
| 579 |
break; |
| 580 |
case 23: |
| 581 |
if (!scr_timerscr_timerfunction scr_timer()
{
if (timer > 0)
{
timer--;
return false;
}
else
{
return true;
}
} ()) |
| 582 |
exit; |
| 583 |
scr_textscr_textfunction scr_text()
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue);
} (); |
| 584 |
with (msg) |
| 585 |
{ |
| 586 |
sndfnt = 102; |
| 587 |
message[0] = "* Hey look it's Hotland!"; |
| 588 |
message[1] = "* This is our stop!"; |
| 589 |
message[2] = "* WAIT!"; |
| 590 |
message[3] = "* WE HAVE TO DOCK HERE,# SLOW DOWN!!"; |
| 591 |
prt[0] = 328; |
| 592 |
prt[1] = 328; |
| 593 |
prt[2] = 333; |
| 594 |
prt[3] = 333; |
| 595 |
skippable = false; |
| 596 |
message_timer = 20; |
| 597 |
} |
| 598 |
if (!global.dialogue_open) |
| 599 |
{ |
| 600 |
scene++; |
| 601 |
timer = 45; |
| 602 |
} |
| 603 |
break; |
| 604 |
case 24: |
| 605 |
if (!scr_timerscr_timerfunction scr_timer()
{
if (timer > 0)
{
timer--;
return false;
}
else
{
return true;
}
} ()) |
| 606 |
exit; |
| 607 |
CAVE_TRANSITION = true; |
| 608 |
scene++; |
| 609 |
break; |
| 610 |
case 25: |
| 611 |
if (transition_x > -320) |
| 612 |
{ |
| 613 |
transition_x -= 9; |
| 614 |
} |
| 615 |
else |
| 616 |
{ |
| 617 |
room_goto(rm_wildeast_cave Wild East - Cave); |
| 618 |
martlet.y = 133; |
| 619 |
scene++; |
| 620 |
} |
| 621 |
break; |
| 622 |
case 26: |
| 623 |
if (transition_x > -660) |
| 624 |
{ |
| 625 |
transition_x -= 9; |
| 626 |
} |
| 627 |
else |
| 628 |
{ |
| 629 |
CAVE_TRANSITION = false; |
| 630 |
timer = 40; |
| 631 |
scene++; |
| 632 |
} |
| 633 |
break; |
| 634 |
case 27: |
| 635 |
if (!scr_timerscr_timerfunction scr_timer()
{
if (timer > 0)
{
timer--;
return false;
}
else
{
return true;
}
} ()) |
| 636 |
exit; |
| 637 |
scr_textscr_textfunction scr_text()
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue);
} (); |
| 638 |
with (msg) |
| 639 |
{ |
| 640 |
sndfnt = 102; |
| 641 |
message[0] = "* OHNO-OHNO-OHNO-OHNO-OHNO"; |
| 642 |
prt[0] = 330; |
| 643 |
skippable = false; |
| 644 |
message_timer = 10; |
| 645 |
} |
| 646 |
if (!global.dialogue_open) |
| 647 |
scene++; |
| 648 |
break; |
| 649 |
case 28: |
| 650 |
if (!instance_exists(obj_cave_collider)) |
| 651 |
{ |
| 652 |
with (obj_waterfall_clover_sit) |
| 653 |
{ |
| 654 |
if (!clover_launch) |
| 655 |
clover_launch = 1; |
| 656 |
} |
| 657 |
with (obj_aviator_waterfall_overworld_yellow) |
| 658 |
{ |
| 659 |
if (sprite_index != other.sprite_ava_death && sprite_index != spr_ava_broken) |
| 660 |
{ |
| 661 |
sprite_index = other.sprite_ava_death; |
| 662 |
image_index = 0; |
| 663 |
image_speed = 1; |
| 664 |
scr_radio_fadescr_radio_fadefunction scr_radio_fade(arg0, arg1)
{
var fade_vol = arg0;
var fade_len = arg1;
with (obj_radio)
audio_sound_gain(current_song, fade_vol, fade_len);
} (0, 100); |
| 665 |
audio_play_sound(snd_gun_hit, 1, 0); |
| 666 |
instance_create(0, 0, obj_cave_screenshake); |
| 667 |
} |
| 668 |
} |
| 669 |
with (obj_waterfall_martlet) |
| 670 |
{ |
| 671 |
if (sprite_index != spr_martlet_fly) |
| 672 |
{ |
| 673 |
sprite_index = spr_martlet_fly; |
| 674 |
image_index = 0; |
| 675 |
image_speed = 0.4; |
| 676 |
vspeed = -4; |
| 677 |
} |
| 678 |
else if (y <= 0) |
| 679 |
{ |
| 680 |
instance_destroy(); |
| 681 |
other.timer = 60; |
| 682 |
other.scene++; |
| 683 |
} |
| 684 |
} |
| 685 |
} |
| 686 |
break; |
| 687 |
case 29: |
| 688 |
if (!scr_timerscr_timerfunction scr_timer()
{
if (timer > 0)
{
timer--;
return false;
}
else
{
return true;
}
} ()) |
| 689 |
exit; |
| 690 |
audio_play_sound(snd_big_crash, 1, 0); |
| 691 |
instance_create(0, 0, obj_cave_screenshake); |
| 692 |
timer = 90; |
| 693 |
scene++; |
| 694 |
break; |
| 695 |
case 30: |
| 696 |
if (!scr_timerscr_timerfunction scr_timer()
{
if (timer > 0)
{
timer--;
return false;
}
else
{
return true;
}
} ()) |
| 697 |
exit; |
| 698 |
instance_create(0, 0, obj_cave_end_transition); |
| 699 |
instance_destroy(); |
| 700 |
scene++; |
| 701 |
} |
| 702 |
} |
| 703 |
else |
| 704 |
{ |
| 705 |
switch (scene) |
| 706 |
{ |
| 707 |
case 0: |
| 708 |
timer = 870; |
| 709 |
scene++; |
| 710 |
break; |
| 711 |
case 1: |
| 712 |
if (!scr_timerscr_timerfunction scr_timer()
{
if (timer > 0)
{
timer--;
return false;
}
else
{
return true;
}
} ()) |
| 713 |
exit; |
| 714 |
timer = 180; |
| 715 |
obj_radio.bgm = 168; |
| 716 |
global.radio_restart = true; |
| 717 |
audio_sound_gain(snd_rapids, 1, 500); |
| 718 |
audio_sound_gain(snd_rock_roll, 0, 0); |
| 719 |
audio_play_sound(snd_rock_roll, 1, 0); |
| 720 |
audio_sound_gain(snd_rock_roll, 1, 1000); |
| 721 |
scene++; |
| 722 |
break; |
| 723 |
case 2: |
| 724 |
if (scr_timerscr_timerfunction scr_timer()
{
if (timer > 0)
{
timer--;
return false;
}
else
{
return true;
}
} ()) |
| 725 |
{ |
| 726 |
scene++; |
| 727 |
HOTLAND_TRANSITION = true; |
| 728 |
} |
| 729 |
break; |
| 730 |
case 3: |
| 731 |
if (transition_x > -320) |
| 732 |
{ |
| 733 |
transition_x -= 8; |
| 734 |
} |
| 735 |
else |
| 736 |
{ |
| 737 |
room_goto(rm_hotland Hotland Ride); |
| 738 |
scene++; |
| 739 |
} |
| 740 |
break; |
| 741 |
case 4: |
| 742 |
if (transition_x > -660) |
| 743 |
{ |
| 744 |
transition_x -= 8; |
| 745 |
} |
| 746 |
else |
| 747 |
{ |
| 748 |
HOTLAND_TRANSITION = false; |
| 749 |
transition_x = 320; |
| 750 |
timer = 120; |
| 751 |
scene++; |
| 752 |
} |
| 753 |
break; |
| 754 |
case 5: |
| 755 |
if (!scr_timerscr_timerfunction scr_timer()
{
if (timer > 0)
{
timer--;
return false;
}
else
{
return true;
}
} ()) |
| 756 |
exit; |
| 757 |
LAVA_TRANSITION = true; |
| 758 |
scene++; |
| 759 |
break; |
| 760 |
case 6: |
| 761 |
if (transition_x > -320) |
| 762 |
{ |
| 763 |
transition_x -= 8; |
| 764 |
} |
| 765 |
else |
| 766 |
{ |
| 767 |
room_goto(rm_lava_tubes Lava Tubes Ride (Crash)); |
| 768 |
scene++; |
| 769 |
} |
| 770 |
case 7: |
| 771 |
if (transition_x > -660) |
| 772 |
{ |
| 773 |
transition_x -= 9; |
| 774 |
} |
| 775 |
else |
| 776 |
{ |
| 777 |
LAVA_TRANSITION = false; |
| 778 |
timer = 180; |
| 779 |
transition_x = 320; |
| 780 |
scene++; |
| 781 |
} |
| 782 |
break; |
| 783 |
case 8: |
| 784 |
if (!scr_timerscr_timerfunction scr_timer()
{
if (timer > 0)
{
timer--;
return false;
}
else
{
return true;
}
} ()) |
| 785 |
exit; |
| 786 |
CAVE_TRANSITION = true; |
| 787 |
scene++; |
| 788 |
break; |
| 789 |
case 9: |
| 790 |
if (transition_x > -320) |
| 791 |
{ |
| 792 |
transition_x -= 9; |
| 793 |
} |
| 794 |
else |
| 795 |
{ |
| 796 |
room_goto(rm_wildeast_cave Wild East - Cave); |
| 797 |
scene++; |
| 798 |
} |
| 799 |
break; |
| 800 |
case 10: |
| 801 |
if (transition_x > -660) |
| 802 |
{ |
| 803 |
transition_x -= 9; |
| 804 |
} |
| 805 |
else |
| 806 |
{ |
| 807 |
CAVE_TRANSITION = false; |
| 808 |
timer = 50; |
| 809 |
scene++; |
| 810 |
} |
| 811 |
break; |
| 812 |
case 11: |
| 813 |
if (!instance_exists(obj_cave_collider)) |
| 814 |
{ |
| 815 |
with (obj_waterfall_clover_sit) |
| 816 |
{ |
| 817 |
if (!clover_launch) |
| 818 |
clover_launch = 1; |
| 819 |
} |
| 820 |
with (obj_aviator_waterfall_overworld_yellow) |
| 821 |
{ |
| 822 |
if (sprite_index != other.sprite_ava_death && sprite_index != spr_ava_broken) |
| 823 |
{ |
| 824 |
sprite_index = other.sprite_ava_death; |
| 825 |
image_index = 0; |
| 826 |
image_speed = 1; |
| 827 |
scr_radio_fadescr_radio_fadefunction scr_radio_fade(arg0, arg1)
{
var fade_vol = arg0;
var fade_len = arg1;
with (obj_radio)
audio_sound_gain(current_song, fade_vol, fade_len);
} (0, 100); |
| 828 |
audio_play_sound(snd_gun_hit, 1, 0); |
| 829 |
instance_create(0, 0, obj_cave_screenshake); |
| 830 |
} |
| 831 |
else if (image_index >= (image_number - 1)) |
| 832 |
{ |
| 833 |
other.scene++; |
| 834 |
sprite_index = spr_ava_broken; |
| 835 |
image_speed = 0.4; |
| 836 |
} |
| 837 |
} |
| 838 |
timer = 75; |
| 839 |
} |
| 840 |
break; |
| 841 |
case 12: |
| 842 |
if (!scr_timerscr_timerfunction scr_timer()
{
if (timer > 0)
{
timer--;
return false;
}
else
{
return true;
}
} ()) |
| 843 |
exit; |
| 844 |
audio_play_sound(snd_big_crash, 1, 0); |
| 845 |
instance_create(0, 0, obj_cave_screenshake); |
| 846 |
timer = 90; |
| 847 |
scene++; |
| 848 |
break; |
| 849 |
case 13: |
| 850 |
if (!scr_timerscr_timerfunction scr_timer()
{
if (timer > 0)
{
timer--;
return false;
}
else
{
return true;
}
} ()) |
| 851 |
exit; |
| 852 |
instance_create(0, 0, obj_cave_end_transition); |
| 853 |
instance_destroy(); |
| 854 |
scene++; |
| 855 |
break; |
| 856 |
} |
| 857 |
} |