Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_cutscene_fade_out

(view raw script w/o annotations or w/e)
1
function cutscene_fade_out(argument0, argument1) //gml_Script_cutscene_fade_out
2
{
3
    if (!instance_exists(argument0))
4
        return;
5
    var fade_speed = clamp(argument1, 0.1, 10)
6
    if (argument0.image_alpha > 0)
7
        argument0.image_alpha -= (argument1 / 10)
8
    else
9
    {
10
        cutscene_advance()
11
        return true;
12
    }
13
    return false;
14
}