Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_ending_flashback_02_noise_Step_0

(view raw script w/o annotations or w/e)
1
if (!fade_out)
2
{
3
    draw_alpha = lerp(draw_alpha, 1, 0.15)
4
    if (draw_alpha > 0.99)
5
        draw_alpha = 1
6
}
7
else
8
{
9
    draw_alpha = lerp(draw_alpha, 0, 0.15)
10
    if (draw_alpha < 0.01)
11
    {
12
        draw_alpha = 0
13
        audio_stop_sound(static_noise)
14
        instance_destroy()
15
    }
16
}
17
audio_sound_gain(static_noise, draw_alpha, 10)