Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_cutscene_screen_fade_in

(view raw script w/o annotations or w/e)
1
function cutscene_screen_fade_in() //gml_Script_cutscene_screen_fade_in
2
{
3
    if (!instance_exists(obj_screen_fade_effect))
4
    {
5
        cutscene_advance()
6
        return true;
7
    }
8
    else
9
    {
10
        obj_screen_fade_effect.fade_speed = argument[0]
11
        if (obj_screen_fade_effect.fade_stage < 2)
12
            obj_screen_fade_effect.fade_stage = 2
13
    }
14
    return false;
15
}