Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_wild_revolver_circle_multi_Draw_0

(view raw script w/o annotations or w/e)
1
if (execute_create == true)
2
{
3
    if (can_execute == false)
4
        exit;
5
    for (i = 0; i <= final_circle; i++)
6
    {
7
        if (imagea[i] > 0)
8
        {
9
            draw_set_alpha(imagea[i]);
10
            scr_circle_outline
scr_circle_outline

function scr_circle_outline(arg0, arg1, arg2, arg3, arg4) { pos_x = arg0; pos_y = arg1; min_rad = arg2; max_thickness = arg3; circ_color = arg4; draw_set_colour(circ_color); for (var i = 0; i <= max_thickness; i++) draw_circle(pos_x, pos_y, min_rad + (i * 0.25), true); }
(x, y, outline[i] - 1, 8 + thickness[i], outline_color[i]);
11
            if (hit[i] == 0)
12
                scr_circle_outline
scr_circle_outline

function scr_circle_outline(arg0, arg1, arg2, arg3, arg4) { pos_x = arg0; pos_y = arg1; min_rad = arg2; max_thickness = arg3; circ_color = arg4; draw_set_colour(circ_color); for (var i = 0; i <= max_thickness; i++) draw_circle(pos_x, pos_y, min_rad + (i * 0.25), true); }
(x, y, outline[i], 4 + thickness[i], cursor_color[i]);
13
        }
14
    }
15
    draw_set_alpha(1);
16
}