Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_flowey_battle_phase_2_transition_Draw_64

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
draw_set_alpha(white_overlay_alpha)
4
draw_set_color(c_white)
5
draw_rectangle(0, 0, 320, 240, false)
6
draw_set_alpha(1)
7
if (draw_glitches == true)
8
{
9
    draw_set_alpha(0.25)
10
    var glitch_number = irandom_range(4, 12)
11
    for (var i = 0; i < glitch_number; i++)
12
    {
13
        var variation = choose(1, 2)
14
        if (variation == 1)
15
            draw_sprite_part(spr_battle_flowey_gray_idle, 0, irandom_range(0, 640), irandom_range(0, 640), irandom_range(32, 64), irandom_range(32, 64), irandom_range(32, 608), irandom_range(32, 388))
16
        else
17
        {
18
            draw_set_color(c_black)
19
            var xx = irandom_range(32, 608)
20
            var yy = irandom_range(32, 388)
21
            draw_rectangle(xx, yy, (xx + (choose(16, 128))), (yy + (choose(16, 128))), false)
22
        }
23
    }
24
    draw_set_alpha(1)
25
}