Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_cutscene_music_start

(view raw script w/o annotations or w/e)
1
function cutscene_music_start() //gml_Script_cutscene_music_start
2
{
3
    if (cutscene_music != snd_ceroba_staff_lock)
4
        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 }
(cutscene_music, 150)
5
    cutscene_music = audio_play_sound(argument[0], 20, 1)
6
    audio_sound_gain(cutscene_music, 1, 0)
7
    if (argument_count > 1)
8
        audio_sound_gain(obj_radio.current_song, 0, argument[1])
9
    cutscene_advance()
10
    return true;
11
}