Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_raft_cutscene_Step_0

(view raw script w/o annotations or w/e)
1
if (room == rm_waterfall_og)
2
{
3
    if ((scene >= 12 && global.snowdin_flag[13] == 1) || (global.snowdin_flag[13] >= 2 && scene >= 2))
4
    {
5
        if (scroll_speed > -8)
6
            scroll_speed -= 0.25
7
    }
8
    var scroll_speed_current = ceil(scroll_speed)
9
    var num = tile_get_count()
10
    for (var i = 0; i < num; i++)
11
    {
12
        var tile = tile_get_id(i)
13
        var tile_y = tile_get_y(tile)
14
        var tile_x = tile_get_x(tile)
15
        var tile_width = tile_get_width(tile)
16
        switch tile_get_depth(tile)
17
        {
18
            case 1000000:
19
            case 999999:
20
                var tile_shift = scroll_speed_current * 0.5
21
                break
22
            case -150:
23
                tile_shift = scroll_speed_current
24
                break
25
            case -200:
26
                tile_shift = scroll_speed_current * 1.5
27
                break
28
        }
29
30
        tile_set_position(tile, (tile_x + tile_shift), tile_y)
31
        if (tile_x <= -480)
32
        {
33
            var diff_x = abs(tile_x) - 480
34
            tile_set_position(tile, (room_width - 480 + tile_shift - diff_x), tile_y)
35
        }
36
    }
37
}
38
if instance_exists(obj_duck)
39
    obj_duck.x += (scroll_speed_current * 1.5)
40
if (global.snowdin_flag[13] == 1)
41
{
42
    var martlet = obj_waterfall_martlet
43
    switch scene
44
    {
45
        case 0:
46
            if scr_timer
scr_timer

function scr_timer() //gml_Script_scr_timer { if (timer > 0) { timer-- return false; } else return true; }
()
47
            {
48
                audio_play_sound(snd_martlet_lands, 1, 0)
49
                scene = 1
50
            }
51
            break
52
        case 1:
53
            with (martlet)
54
            {
55
                if (y < 130)
56
                    y += 3
57
                else
58
                {
59
                    y = 157
60
                    other.scene = 2
61
                    sprite_index = spr_martlet_sit_down
62
                    image_index = 0
63
                    image_speed = 0.3
64
                }
65
            }
66
            break
67
        case 2:
68
            with (martlet)
69
            {
70
                if (image_index >= 23)
71
                {
72
                    image_speed = 0
73
                    sprite_index = spr_martlet_sit
74
                    other.scene = 3
75
                    other.timer = 60
76
                }
77
            }
78
            break
79
        case 3:
80
            if (!scr_timer
scr_timer

function scr_timer() //gml_Script_scr_timer { if (timer > 0) { timer-- return false; } else return true; }
())
81
                return;
82
            scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
83
            with (msg)
84
            {
85
                sndfnt = 102
86
                message[0] = "* So, hi!"
87
                prt[0] = 312
88
            }
89
            if (global.dialogue_open == false)
90
            {
91
                scene++
92
                timer = 45
93
            }
94
            break
95
        case 4:
96
            if (!scr_timer
scr_timer

function scr_timer() //gml_Script_scr_timer { if (timer > 0) { timer-- return false; } else return true; }
())
97
                return;
98
            scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
99
            with (msg)
100
            {
101
                sndfnt = 102
102
                message[0] = "* So I was thinking."
103
                message[1] = "* If Ava doesn't have#  sails,"
104
                message[2] = "* Does this still count as#  sailing?"
105
                prt[0] = 328
106
                prt[1] = 338
107
                prt[2] = 324
108
            }
109
            if (!global.dialogue_open)
110
            {
111
                scene = 4.5
112
                timer = 80
113
            }
114
            break
115
        case 4.5:
116
            if (!scr_timer
scr_timer

function scr_timer() //gml_Script_scr_timer { if (timer > 0) { timer-- return false; } else return true; }
())
117
                return;
118
            scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
119
            with (msg)
120
            {
121
                sndfnt = 102
122
                message[0] = "* Pretty smooth ride,#  yeah?    "
123
                message[1] = "* My woodworking skills#  aren't too shabby!    "
124
                message[2] = "* I suppose I should#  thank my mentor.    "
125
                message[3] = "* Older fella by the name#  of Chujin. Taught me#  everything!"
126
                message[4] = "* He... Well... Nevermind."
127
                prt[0] = 312
128
                prt[1] = 331
129
                prt[2] = 321
130
                prt[3] = 328
131
                prt[4] = 329
132
            }
133
            if (!global.dialogue_open)
134
            {
135
                scene = 5
136
                timer = 80
137
            }
138
            break
139
        case 5:
140
            if (!scr_timer
scr_timer

function scr_timer() //gml_Script_scr_timer { if (timer > 0) { timer-- return false; } else return true; }
())
141
                return;
142
            scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
143
            with (msg)
144
            {
145
                sndfnt = 102
146
                ch_msg = 2
147
                ch[1] = "Yes"
148
                ch[2] = "No"
149
                message[0] = "* Hey, so would you mind#  answering a few#  questions for me?"
150
                message[1] = "* It's nothing big, it's#  just a little quality#  assurance questionnaire."
151
                message[2] = "* Will you try it?"
152
                prt[0] = 328
153
                prt[1] = 328
154
                prt[2] = 312
155
                if (outcome == 1)
156
                {
157
                    message[3] = "* Great!"
158
                    message[4] = "* Question one:"
159
                    prt[3] = 318
160
                    prt[4] = 328
161
                }
162
                if (outcome == 2)
163
                {
164
                    message[3] = "* Oh, yeah, no, that's#  fine."
165
                    message[4] = "* It's just that, you#  know, it might help me#  keep my job."
166
                    message[5] = "* Even a bad review, it#  just can't be, um, no#  review."
167
                    message[6] = "* Look, I'll even fill it#  out for you!"
168
                    message[7] = "* You won't even notice#  I'm doing it, it'll#  be fun!"
169
                    message[8] = "* Okay, question one:"
170
                    prt[3] = 320
171
                    prt[4] = 320
172
                    prt[5] = 338
173
                    prt[6] = 328
174
                    prt[7] = 328
175
                    prt[8] = 312
176
                }
177
            }
178
            if (!global.dialogue_open)
179
                scene++
180
            break
181
        case 6:
182
            with (martlet)
183
            {
184
                if (sprite_index != spr_martlet_sit_down)
185
                {
186
                    sprite_index = spr_martlet_sit_down
187
                    image_index = 23
188
                    image_speed = 0.3
189
                }
190
                else if (image_index >= 40)
191
                {
192
                    image_speed = 0
193
                    sprite_index = spr_martlet_sit_book
194
                    other.scene++
195
                }
196
            }
197
            break
198
        case 7:
199
            scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
200
            if (!instance_exists(obj_dialoguebox_dummy))
201
                instance_create(0, 0, obj_dialoguebox_dummy)
202
            with (msg)
203
            {
204
                sndfnt = 102
205
                message[0] = "* On a scale from 1-3..."
206
                message[1] = "* How would you rate your#  encounter with the#  Royal Guard?"
207
                message[2] = "* Please answer honestly!"
208
                prt[0] = 328
209
                prt[1] = 328
210
                prt[2] = 328
211
                ch_msg = 2
212
                ch[1] = "1"
213
                ch[2] = "2"
214
                ch[3] = "3"
215
                ch[4] = ""
216
                if (outcome == 1)
217
                {
218
                    message[3] = "* Oh... was it that bad?#  I'm sorry."
219
                    message[4] = "* Well, maybe it wasn't#  really as bad as you#  think it was!"
220
                    message[5] = "* It's one of those \"bad#  in the moment but a good#  laugh later\" things!"
221
                    message[6] = "* Let's keep going, maybe#  you'll change your mind!"
222
                    prt[3] = 333
223
                    prt[4] = 338
224
                    prt[5] = 321
225
                    prt[6] = 328
226
                }
227
                if (outcome == 2)
228
                {
229
                    message[3] = "* That sounds fair."
230
                    message[4] = "* I think 2 out of 3 is#  an accurate rating of#  my performance."
231
                    message[5] = "* Ya know, just in#  general."
232
                    message[6] = "* ..."
233
                    message[7] = "* Where were we?"
234
                    prt[3] = 321
235
                    prt[4] = 338
236
                    prt[5] = 321
237
                    prt[6] = 321
238
                    prt[7] = 328
239
                }
240
                if (outcome == 3)
241
                {
242
                    message[3] = "* Wait, really!?"
243
                    message[4] = "* I got a three!"
244
                    message[5] = "* I've never gotten a#  three before!"
245
                    message[6] = "* Oh my goodly goodness!#  I can't believe it I#  got a three!"
246
                    message[7] = "* I have to tell#  absolutely everyone!"
247
                    message[8] = "* Okay, sorry, got#  carried away."
248
                    message[9] = "* Let's keep going!"
249
                    prt[3] = 333
250
                    prt[4] = 318
251
                    prt[5] = 312
252
                    prt[6] = 312
253
                    prt[7] = 312
254
                    prt[8] = 318
255
                    prt[9] = 328
256
                }
257
            }
258
            if (!global.dialogue_open)
259
                scene++
260
            break
261
        case 8:
262
            scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
263
            with (msg)
264
            {
265
                sndfnt = 102
266
                message[0] = "* Question two:"
267
                message[1] = "* On a scale from 1-2,#  how would you rate..."
268
                message[2] = "* ...the puzzles deployed#  in Snowdin."
269
                prt[0] = 328
270
                prt[1] = 328
271
                prt[2] = 328
272
                ch_msg = 2
273
                ch[1] = "1"
274
                ch[2] = "2"
275
                if (outcome == 1)
276
                {
277
                    message[3] = "* Oh. Yeah I was gonna,#  like, complain about#  that, or something."
278
                    message[4] = "* They don't really, um,#  acknowledge my requests#  for materials anymore."
279
                    message[5] = "* I wanted the molten#  rocks to be way bigger.#  It's a shame."
280
                    message[6] = "* How am I supposed to#  make a quality puzzle#  without materials!"
281
                    message[7] = "* I mean... the concepts#  were good at least...#  right?"
282
                    message[8] = "* You know what, let's#  just move on."
283
                    prt[3] = 324
284
                    prt[4] = 323
285
                    prt[5] = 313
286
                    prt[6] = 315
287
                    prt[7] = 329
288
                    prt[8] = 328
289
                }
290
                if (outcome == 2)
291
                {
292
                    color = true
293
                    col_modif[0] = 4235519
294
                    message[3] = "* Really!"
295
                    message[4] = "* Thanks, I made them#  myself!"
296
                    message[5] = "* There's a reason I was#  assigned to work under#  the Royal Scientist!"
297
                    message_col[5][0] = "                        #                        #      Royal Scientist "
298
                    message[6] = "* I mean, it's because I#  got last choice of#  station, but still!"
299
                    message[7] = "* You pick up a few#  things guardin' all#  that science stuff!"
300
                    message[8] = "* Anyway, back on topic!"
301
                    prt[3] = 333
302
                    prt[4] = 312
303
                    prt[5] = 318
304
                    prt[6] = 323
305
                    prt[7] = 312
306
                    prt[8] = 328
307
                }
308
            }
309
            if (!global.dialogue_open)
310
                scene++
311
            break
312
        case 9:
313
            scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
314
            with (msg)
315
            {
316
                sndfnt = 102
317
                message[0] = "* Question three:"
318
                message[1] = "* On a scale 1-4, how#  would you rate the#  au-di-tory ambi-an-#"
319
                message[2] = "* What does that mean?"
320
                message[3] = "* Okay, that's a new#  question. Why do they#  keep updating this?"
321
                message[4] = "* Let's just forget the#  questionnaire."
322
                message[5] = "* I'll just put you#  down as dead center#  for the rest."
323
                message[6] = "* That sound good? Yeah#  that works."
324
                message[7] = "* Just a 2 there... and a#  3... and a 2.15 here...#  and 23, and we're done!"
325
                prt[0] = 328
326
                prt[1] = 311
327
                prt[2] = 324
328
                prt[3] = 311
329
                prt[4] = 320
330
                prt[5] = 328
331
                prt[6] = 328
332
                prt[7] = 312
333
            }
334
            if (!global.dialogue_open)
335
            {
336
                scene++
337
                instance_destroy(obj_dialoguebox_dummy)
338
            }
339
            break
340
        case 10:
341
            with (martlet)
342
            {
343
                if (sprite_index != spr_martlet_sit_down)
344
                {
345
                    sprite_index = spr_martlet_sit_down
346
                    image_index = 46
347
                    image_speed = 0.3
348
                }
349
                else if (image_index >= (image_number - 1))
350
                {
351
                    image_speed = 0
352
                    sprite_index = spr_martlet_sit
353
                    other.scene++
354
                }
355
            }
356
            break
357
        case 11:
358
            scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
359
            with (msg)
360
            {
361
                sndfnt = 102
362
                message[0] = "* Oh, one more thing."
363
                message[1] = "* I'm gonna need your#  name for legal purposes."
364
                message[2] = "* You know how it gets."
365
                prt[0] = 321
366
                prt[1] = 320
367
                prt[2] = 320
368
                ch_msg = 2
369
                ch[1] = "It's Clover"
370
                if (outcome == 1)
371
                {
372
                    message[3] = "* What a unique name! I#  love it."
373
                    message[4] = "* So, Clover, let's talk#  about Ava!"
374
                    message[5] = "* Isn't she great? I told#  ya, sails like a dream#  from a perfect lullaby!"
375
                    message[6] = "* Nice pace, pretty view,#  and not a single leak!"
376
                    message[7] = "* Oh, well there's a#  little one, but not too#  many leaks!"
377
                    message[8] = "* We can just sit back,#  and relax and-hey..."
378
                    message[9] = "* Do you hear an abnormal#  amount of running water?"
379
                    prt[3] = 312
380
                    prt[4] = 328
381
                    prt[5] = 318
382
                    prt[6] = 318
383
                    prt[7] = 320
384
                    prt[8] = 328
385
                    prt[9] = 311
386
                }
387
            }
388
            if (!global.dialogue_open)
389
            {
390
                audio_sound_gain(snd_rapids, 1, 500)
391
                audio_sound_gain(snd_rock_roll, 0, 0)
392
                audio_play_sound(snd_rock_roll, 1, 0)
393
                audio_sound_gain(snd_rock_roll, 1, 1000)
394
                scr_audio_fade_out
scr_audio_fade_out

function scr_audio_fade_out(argument0, argument1) //gml_Script_scr_audio_fade_out { var snd = argument0 var fade_len = argument1 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)
395
                timer = 60
396
                scene++
397
            }
398
            break
399
        case 12:
400
            if scr_timer
scr_timer

function scr_timer() //gml_Script_scr_timer { if (timer > 0) { timer-- return false; } else return true; }
()
401
                scene++
402
            break
403
        case 13:
404
            scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
405
            with (msg)
406
            {
407
                sndfnt = 102
408
                message[0] = "* Well, we are in#  Waterfall..."
409
                message[1] = "* Is it just me or is the#  river getting faster?"
410
                message[2] = "* Well, if anything it#  helps u-"
411
                prt[0] = 320
412
                prt[1] = 335
413
                prt[2] = 320
414
                if (message_current == 2)
415
                {
416
                    skippable = false
417
                    if (cutoff == string_length(message[message_current]))
418
                    {
419
                        global.dialogue_open = false
420
                        with (martlet)
421
                        {
422
                            if (sprite_index != spr_martlet_sit_surprise)
423
                            {
424
                                sprite_index = spr_martlet_sit_surprise
425
                                image_index = 0
426
                                image_speed = 0.3
427
                            }
428
                        }
429
                    }
430
                }
431
            }
432
            if (!global.dialogue_open)
433
                scene++
434
            break
435
        case 14:
436
            with (martlet)
437
            {
438
                if (image_index >= (image_number - 1))
439
                {
440
                    image_speed = 0
441
                    image_index = image_number - 1
442
                    other.timer = 30
443
                    other.scene++
444
                }
445
            }
446
            break
447
        case 15:
448
            if (!scr_timer
scr_timer

function scr_timer() //gml_Script_scr_timer { if (timer > 0) { timer-- return false; } else return true; }
())
449
                return;
450
            scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
451
            with (msg)
452
            {
453
                sndfnt = 102
454
                message[0] = "* UH OH!"
455
                prt[0] = 333
456
                skippable = false
457
                message_timer = 30
458
            }
459
            if (!global.dialogue_open)
460
            {
461
                obj_radio.bgm = mus_uhoh
462
                global.radio_restart = true
463
                audio_sound_gain(obj_radio.bgm, 1, 0)
464
                scene++
465
            }
466
            break
467
        case 16:
468
            with (martlet)
469
            {
470
                if (sprite_index != spr_martlet_sit_cling)
471
                {
472
                    sprite_index = spr_martlet_sit_cling
473
                    image_index = 0
474
                    image_speed = 0.3
475
                }
476
                else
477
                {
478
                    if (floor(image_index) == 7)
479
                        y = 168
480
                    if (image_index >= (image_number - 1))
481
                    {
482
                        image_speed = 0
483
                        image_index = image_number - 1
484
                        other.HOTLAND_TRANSITION = true
485
                        other.scene++
486
                    }
487
                }
488
            }
489
            break
490
        case 17:
491
            if (transition_x > -320)
492
                transition_x -= 8
493
            else
494
            {
495
                room_goto(rm_hotland Hotland Ride)
496
                with (martlet)
497
                {
498
                    sprite_index = spr_martlet_cling_dark
499
                    image_speed = 0.4
500
                    y = 210
501
                }
502
                scene++
503
            }
504
            break
505
        case 18:
506
            if (transition_x > -660)
507
                transition_x -= 8
508
            else
509
            {
510
                HOTLAND_TRANSITION = false
511
                transition_x = 320
512
                timer = 12
513
                obj_pl.y = 0
514
                scene++
515
            }
516
            break
517
        case 19:
518
            if (!scr_timer
scr_timer

function scr_timer() //gml_Script_scr_timer { if (timer > 0) { timer-- return false; } else return true; }
())
519
                return;
520
            scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
521
            with (msg)
522
            {
523
                sndfnt = 102
524
                message[0] = "* UM..."
525
                message[1] = "* I might not have been#  down this route before!"
526
                message[2] = "* Hold on to something!"
527
                prt[0] = 323
528
                prt[1] = 323
529
                prt[2] = 333
530
                skippable = false
531
                message_timer = 16
532
            }
533
            if (!global.dialogue_open)
534
            {
535
                scene++
536
                timer = 25
537
            }
538
            break
539
        case 20:
540
            if (!scr_timer
scr_timer

function scr_timer() //gml_Script_scr_timer { if (timer > 0) { timer-- return false; } else return true; }
())
541
                return;
542
            LAVA_TRANSITION = true
543
            scene++
544
            break
545
        case 21:
546
            if (transition_x > -320)
547
            {
548
                transition_x -= 8
549
                break
550
            }
551
            else
552
            {
553
                room_goto(rm_lava_tubes Lava Tubes Ride (Crash))
554
                with (martlet)
555
                {
556
                    y = 128
557
                    sprite_index = spr_martlet_wind
558
                }
559
                scene++
560
            }
561
        case 22:
562
            if (transition_x > -660)
563
                transition_x -= 9
564
            else
565
            {
566
                LAVA_TRANSITION = false
567
                timer = 60
568
                transition_x = 320
569
                scene++
570
            }
571
            break
572
        case 23:
573
            if (!scr_timer
scr_timer

function scr_timer() //gml_Script_scr_timer { if (timer > 0) { timer-- return false; } else return true; }
())
574
                return;
575
            scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
576
            with (msg)
577
            {
578
                sndfnt = 102
579
                message[0] = "* Hey look it's Hotland!"
580
                message[1] = "* This is our stop!"
581
                message[2] = "* WAIT!"
582
                message[3] = "* WE HAVE TO DOCK HERE,#  SLOW DOWN!!"
583
                prt[0] = 328
584
                prt[1] = 328
585
                prt[2] = 333
586
                prt[3] = 333
587
                skippable = false
588
                message_timer = 20
589
            }
590
            if (!global.dialogue_open)
591
            {
592
                scene++
593
                timer = 45
594
            }
595
            break
596
        case 24:
597
            if (!scr_timer
scr_timer

function scr_timer() //gml_Script_scr_timer { if (timer > 0) { timer-- return false; } else return true; }
())
598
                return;
599
            CAVE_TRANSITION = true
600
            scene++
601
            break
602
        case 25:
603
            if (transition_x > -320)
604
                transition_x -= 9
605
            else
606
            {
607
                room_goto(rm_wildeast_cave Wild East - Cave)
608
                martlet.y = 133
609
                scene++
610
            }
611
            break
612
        case 26:
613
            if (transition_x > -660)
614
                transition_x -= 9
615
            else
616
            {
617
                CAVE_TRANSITION = false
618
                timer = 40
619
                scene++
620
            }
621
            break
622
        case 27:
623
            if (!scr_timer
scr_timer

function scr_timer() //gml_Script_scr_timer { if (timer > 0) { timer-- return false; } else return true; }
())
624
                return;
625
            scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
626
            with (msg)
627
            {
628
                sndfnt = 102
629
                message[0] = "* OHNO-OHNO-OHNO-OHNO-OHNO"
630
                prt[0] = 330
631
                skippable = false
632
                message_timer = 10
633
            }
634
            if (!global.dialogue_open)
635
                scene++
636
            break
637
        case 28:
638
            if (!instance_exists(obj_cave_collider))
639
            {
640
                with (obj_waterfall_clover_sit)
641
                {
642
                    if (!clover_launch)
643
                        clover_launch = 1
644
                }
645
                with (obj_aviator_waterfall_overworld_yellow)
646
                {
647
                    if (sprite_index != other.sprite_ava_death && sprite_index != spr_ava_broken)
648
                    {
649
                        sprite_index = other.sprite_ava_death
650
                        image_index = 0
651
                        image_speed = 1
652
                        scr_radio_fade
scr_radio_fade

function scr_radio_fade(argument0, argument1) //gml_Script_scr_radio_fade { var fade_vol = argument0 var fade_len = argument1 with (obj_radio) audio_sound_gain(current_song, fade_vol, fade_len) }
(0, 100)
653
                        audio_play_sound(snd_gun_hit, 1, 0)
654
                        instance_create(0, 0, obj_cave_screenshake)
655
                    }
656
                }
657
                with (obj_waterfall_martlet)
658
                {
659
                    if (sprite_index != spr_martlet_fly)
660
                    {
661
                        sprite_index = spr_martlet_fly
662
                        image_index = 0
663
                        image_speed = 0.4
664
                        vspeed = -4
665
                    }
666
                    else if (y <= 0)
667
                    {
668
                        instance_destroy()
669
                        other.timer = 60
670
                        other.scene++
671
                    }
672
                }
673
            }
674
            break
675
        case 29:
676
            if (!scr_timer
scr_timer

function scr_timer() //gml_Script_scr_timer { if (timer > 0) { timer-- return false; } else return true; }
())
677
                return;
678
            audio_play_sound(snd_big_crash, 1, 0)
679
            instance_create(0, 0, obj_cave_screenshake)
680
            timer = 90
681
            scene++
682
            break
683
        case 30:
684
            if (!scr_timer
scr_timer

function scr_timer() //gml_Script_scr_timer { if (timer > 0) { timer-- return false; } else return true; }
())
685
                return;
686
            instance_create(0, 0, obj_cave_end_transition)
687
            instance_destroy()
688
            scene++
689
    }
690
691
}
692
else
693
{
694
    switch scene
695
    {
696
        case 0:
697
            timer = 870
698
            scene++
699
            break
700
        case 1:
701
            if (!scr_timer
scr_timer

function scr_timer() //gml_Script_scr_timer { if (timer > 0) { timer-- return false; } else return true; }
())
702
                return;
703
            timer = 180
704
            obj_radio.bgm = 168
705
            global.radio_restart = true
706
            audio_sound_gain(snd_rapids, 1, 500)
707
            audio_sound_gain(snd_rock_roll, 0, 0)
708
            audio_play_sound(snd_rock_roll, 1, 0)
709
            audio_sound_gain(snd_rock_roll, 1, 1000)
710
            scene++
711
            break
712
        case 2:
713
            if scr_timer
scr_timer

function scr_timer() //gml_Script_scr_timer { if (timer > 0) { timer-- return false; } else return true; }
()
714
            {
715
                scene++
716
                HOTLAND_TRANSITION = true
717
            }
718
            break
719
        case 3:
720
            if (transition_x > -320)
721
                transition_x -= 8
722
            else
723
            {
724
                room_goto(rm_hotland Hotland Ride)
725
                scene++
726
            }
727
            break
728
        case 4:
729
            if (transition_x > -660)
730
                transition_x -= 8
731
            else
732
            {
733
                HOTLAND_TRANSITION = false
734
                transition_x = 320
735
                timer = 120
736
                scene++
737
            }
738
            break
739
        case 5:
740
            if (!scr_timer
scr_timer

function scr_timer() //gml_Script_scr_timer { if (timer > 0) { timer-- return false; } else return true; }
())
741
                return;
742
            LAVA_TRANSITION = true
743
            scene++
744
            break
745
        case 6:
746
            if (transition_x > -320)
747
            {
748
                transition_x -= 8
749
                break
750
            }
751
            else
752
            {
753
                room_goto(rm_lava_tubes Lava Tubes Ride (Crash))
754
                scene++
755
            }
756
        case 7:
757
            if (transition_x > -660)
758
                transition_x -= 9
759
            else
760
            {
761
                LAVA_TRANSITION = false
762
                timer = 180
763
                transition_x = 320
764
                scene++
765
            }
766
            break
767
        case 8:
768
            if (!scr_timer
scr_timer

function scr_timer() //gml_Script_scr_timer { if (timer > 0) { timer-- return false; } else return true; }
())
769
                return;
770
            CAVE_TRANSITION = true
771
            scene++
772
            break
773
        case 9:
774
            if (transition_x > -320)
775
                transition_x -= 9
776
            else
777
            {
778
                room_goto(rm_wildeast_cave Wild East - Cave)
779
                scene++
780
            }
781
            break
782
        case 10:
783
            if (transition_x > -660)
784
                transition_x -= 9
785
            else
786
            {
787
                CAVE_TRANSITION = false
788
                timer = 50
789
                scene++
790
            }
791
            break
792
        case 11:
793
            if (!instance_exists(obj_cave_collider))
794
            {
795
                with (obj_waterfall_clover_sit)
796
                {
797
                    if (!clover_launch)
798
                        clover_launch = 1
799
                }
800
                with (obj_aviator_waterfall_overworld_yellow)
801
                {
802
                    if (sprite_index != other.sprite_ava_death && sprite_index != spr_ava_broken)
803
                    {
804
                        sprite_index = other.sprite_ava_death
805
                        image_index = 0
806
                        image_speed = 1
807
                        scr_radio_fade
scr_radio_fade

function scr_radio_fade(argument0, argument1) //gml_Script_scr_radio_fade { var fade_vol = argument0 var fade_len = argument1 with (obj_radio) audio_sound_gain(current_song, fade_vol, fade_len) }
(0, 100)
808
                        audio_play_sound(snd_gun_hit, 1, 0)
809
                        instance_create(0, 0, obj_cave_screenshake)
810
                    }
811
                    else if (image_index >= (image_number - 1))
812
                    {
813
                        other.scene++
814
                        sprite_index = spr_ava_broken
815
                        image_speed = 0.4
816
                    }
817
                }
818
                timer = 75
819
            }
820
            break
821
        case 12:
822
            if (!scr_timer
scr_timer

function scr_timer() //gml_Script_scr_timer { if (timer > 0) { timer-- return false; } else return true; }
())
823
                return;
824
            audio_play_sound(snd_big_crash, 1, 0)
825
            instance_create(0, 0, obj_cave_screenshake)
826
            timer = 90
827
            scene++
828
            break
829
        case 13:
830
            if (!scr_timer
scr_timer

function scr_timer() //gml_Script_scr_timer { if (timer > 0) { timer-- return false; } else return true; }
())
831
                return;
832
            instance_create(0, 0, obj_cave_end_transition)
833
            instance_destroy()
834
            scene++
835
            break
836
    }
837
838
}