Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_rock_sorter_Step_0

(view raw script w/o annotations or w/e)
1
if (obj_pl.x > 690 && obj_pl.y > 260)
2
{
3
    if (!audio_is_playing(snd_machinery))
4
    {
5
        audio_play_sound(snd_machinery, 1, 1);
6
        audio_sound_gain(snd_machinery, 0, 0);
7
    }
8
    audio_sound_gain(snd_machinery, 1, 300);
9
}
10
else if (audio_is_playing(snd_machinery))
11
{
12
    scr_audio_fade_out
scr_audio_fade_out

function 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; }
(257, 300);
13
}