Undertale script viewer

← back to main script listing

gml_Object_obj_icecave_fader_Step_1

(view raw script w/o annotations or w/e)
1
if (view_yview[0] <= 0)
2
{
3
    image_alpha = 0;
4
    oalpha = 0;
5
}
6
if (view_yview[0] > 0)
7
{
8
    a = oalpha - ((top / view_yview[0]) * oalpha);
9
    if (a > 0)
10
        image_alpha = a;
11
    else
12
        image_alpha = 0;
13
}