Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_flowey_battle_screen_glitch_attack_switch_Draw_64

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
display_set_gui_size(-1, -1)
4
application_surface_draw_enable(false)
5
var app_surf_height = surface_get_height(application_surface)
6
var app_surf_width = surface_get_width(application_surface)
7
var screen_parts = 8
8
var part_height = app_surf_height / screen_parts
9
var part_width = app_surf_width / screen_parts
10
for (var i = 0; i < screen_parts; i++)
11
{
12
    for (var j = 0; j < screen_parts; j++)
13
        draw_surface_part_ext(application_surface, (j * part_width), (i * part_height), part_width, part_height, (j * part_width), (i * part_height), random_range(0.5, 1.5), random_range(0.5, 1.5), 16777215, 1)
14
}
15
display_set_gui_size(320, 240)