Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_intro_fade_screen_Step_0

(view raw script w/o annotations or w/e)
1
if (fade_direction == "out")
2
{
3
    image_alpha += fade_speed
4
    if (image_alpha == 1)
5
        fade_direction = "none"
6
}
7
if (fade_direction == "in")
8
{
9
    image_alpha -= fade_speed
10
    if (image_alpha == 0)
11
        fade_direction = "none"
12
}