Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_flowey_battle_screen_glitch_wheel_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 = 20;
8
var part_height = app_surf_height / screen_parts;
9
for (var i = 0; i < screen_parts; i++)
10
{
11
    var x_offset = irandom_range(-30, 30);
12
    draw_surface_part_ext(application_surface, 0, i * part_height, app_surf_width, part_height, x_offset, i * part_height, 1, 1, 16777215, 1);
13
}
14
display_set_gui_size(320, 240);