Undertale script viewer

← back to main script listing

gml_Object_obj_hg_wholescreen_Draw_0

(view raw script w/o annotations or w/e)
1
if (con == 0)
2
{
3
    obj_asriel_body.image_alpha -= 0.1;
4
    draw_set_color(c_black);
5
    ossafe_fill_rectangle(xx, yy, xx2, yy2);
6
}
7
if (con == 2)
8
{
9
    draw_set_color(c_white);
10
    draw_set_alpha(scr);
11
    ossafe_fill_rectangle(xx, yy, xx2, yy2);
12
    scr -= 0.1;
13
    draw_set_alpha(1);
14
    if (scr <= 0)
15
        instance_destroy();
16
}
17
if (xx > -100)
18
    xx -= 10;
19
if (yy > -100)
20
    yy -= 10;
21
if (xx2 < 800)
22
    xx2 += 10;
23
if (yy2 < 800)
24
    yy2 += 10;
25
draw_set_color(c_white);
26
for (i = 0; i < 4; i += 1)
27
    draw_rectangle(xx + i, yy + i, xx2 + i, yy2 + i, true);