Undertale script viewer

← back to main script listing

gml_Object_obj_mett_bossintro_Draw_0

(view raw script w/o annotations or w/e)
1
if (blacker == 1)
2
{
3
    draw_set_color(c_black);
4
    ossafe_fill_rectangle(0, 240, 640, 480);
5
}
6
if (con == 8)
7
{
8
    if (flasher == 1 || flasher == 2)
9
    {
10
        if (flasher == 1)
11
            flashamt += 0.2;
12
        if (flashamt > 2)
13
        {
14
            caster_stop(presong);
15
            caster_play(flashsound, 1, 1);
16
            flasher = 2;
17
            with (n)
18
                instance_destroy();
19
            with (n2)
20
                instance_destroy();
21
            cloud = 0;
22
            with (obj_stagecloud)
23
                instance_destroy();
24
            mb = 409;
25
            mb.sineron = 1;
26
            mb.myblend = 16777215;
27
            mb.myalpha = 1;
28
            blacker = 0;
29
        }
30
        if (flasher == 2)
31
            flashamt -= 0.4;
32
        if (flashamt < 0)
33
        {
34
            flasher = 0;
35
            con = 9;
36
        }
37
        draw_set_color(c_white);
38
        draw_set_alpha(flashamt);
39
        ossafe_fill_rectangle(-1, -1, 700, 700);
40
        draw_set_alpha(1);
41
    }
42
}