Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_transition_white_Create_0

(view raw script w/o annotations or w/e)
1
fadealpha = 0;
2
newRoom = 0;
3
fadespeed = 1;
4
alarm[0] = fadespeed;
gml_Object_obj_transition_white_Alarm_0.gml

alarm[0] = fadespeed; if (fadein == false) fadealpha += 0.007; if (fadein == true) { fadealpha -= 0.1; if (fadealpha <= 0) { instance_destroy(); if (instance_exists(obj_pl)) obj_pl.alarm[0] = 5; } }
5
yy = 0;
6
xx = 0;
7
fadein = false;
8
if (instance_exists(obj_pl))
9
{
10
    x = obj_pl.x;
11
    y = obj_pl.y;
12
}
13
else
14
{
15
    x = xx;
16
}
17
y = yy;
18
sw = false;