Undertale script viewer

← back to main script listing

gml_Object_obj_labelevator_open_Draw_0

(view raw script w/o annotations or w/e)
1
draw_set_color(c_black);
2
draw_set_alpha(0.3);
3
ossafe_fill_rectangle(-10, -10, 999, 999);
4
draw_set_alpha(1 - (xreveal / 40));
5
ossafe_fill_rectangle(-10, -10, 160 - xreveal, 300);
6
ossafe_fill_rectangle(160 + xreveal, -10, 340, 300);
7
draw_set_alpha(1);
8
if (con == 1)
9
    global.interact = 1;
10
if (con == 2)
11
{
12
    if (xreveal == 0)
13
        snd_play(snd_spearappear);
14
    xreveal += 2;
15
    if (xreveal >= 20)
16
    {
17
        snd_play(snd_impact);
18
        xreveal = 20;
19
        global.interact = 0;
20
        con = 3;
21
    }
22
}