Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_first_tumbleweed_Step_0

(view raw script w/o annotations or w/e)
1
if (obj_pl.x > 440 && active == 0)
2
{
3
    active = 1
4
    scr_cutscene_start
scr_cutscene_start

function scr_cutscene_start() //gml_Script_scr_cutscene_start { global.cutscene = true obj_pl.state = gml_Script_scr_frozen_state obj_pl.image_index = 0 obj_pl.image_speed = 0 }
()
5
    audio_sound_gain(obj_radio.bgm, 0, 300)
6
    if (!audio_is_playing(snd_rumble))
7
    {
8
        var rumble = audio_play_sound(snd_rumble, 1, 1)
9
        audio_sound_gain(rumble, 0.75, 0)
10
    }
11
}
12
if (active == 1)
13
{
14
    image_alpha += 0.025
15
    if (image_alpha < 1)
16
        return;
17
    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 }
(snd_rumble, 100)
18
    active = 2
19
    image_speed = 0.3
20
}
21
if (active == 2)
22
{
23
    var roll_speed = 2.5
24
    image_speed = 0.4
25
    if ((y < 105 && y > 35) || y > 220)
26
    {
27
        roll_speed = 4.5
28
        image_index = 0
29
        image_speed = 0
30
        if (y > 380)
31
            image_alpha -= 0.1
32
    }
33
    if (y >= 130 && audio_played == false)
34
    {
35
        audio_play_sound(snd_mart_impact_2, 1, 0)
36
        audio_played = true
37
    }
38
    if (y > 240)
39
        depth = 10000
40
    y += roll_speed
41
    if (y >= room_height)
42
    {
43
        if (!alarm[1])
44
            alarm[1] = 45
alarm[1]

scr_cutscene_end() instance_destroy() audio_sound_gain(obj_radio.bgm, 1, 300) global.dunes_flag[13] = true
45
    }
46
}