Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_cutscene_screen_fade_out

(view raw script w/o annotations or w/e)
1
function cutscene_screen_fade_out() //gml_Script_cutscene_screen_fade_out
2
{
3
    if (!instance_exists(obj_screen_fade_effect))
4
    {
5
        with (instance_create_depth(0, 0, -100, obj_screen_fade_effect))
6
        {
7
            fade_color = argument[0]
8
            fade_speed = argument[1]
9
        }
10
    }
11
    else if (obj_screen_fade_effect.fade_stage >= 1)
12
    {
13
        cutscene_advance()
14
        return true;
15
    }
16
    return false;
17
}