Undertale script viewer

← back to main script listing

gml_Object_obj_glowstone_Draw_0

(view raw script w/o annotations or w/e)
1
if (instance_exists(obj_darknesspuzzle))
2
    gl = obj_darknesspuzzle.glowamt;
3
else
4
    gl = 0;
5
draw_set_circle_precision(12);
6
if (gl > 0.1)
7
{
8
    gl2 = gl + (sin(siner / 10) / 6);
9
    image_alpha = obj_darknesspuzzle.glowamt;
10
    draw_set_color(c_fuchsia);
11
    draw_set_alpha(gl2 / 3);
12
    draw_circle(x + 10, y + 10, gl2 * 15, 0);
13
    draw_set_alpha(gl2 / 3);
14
    draw_circle(x + 10, y + 10, gl2 * 20, 0);
15
    draw_set_alpha(gl2 / 3);
16
    draw_circle(x + 10, y + 10, gl2 * 25, 0);
17
    draw_set_alpha(gl2 / 3);
18
    draw_circle(x + 10, y + 10, gl2 * 30, 0);
19
}
20
siner += 1;
21
draw_sprite_ext(sprite_index, image_index, x, y, 1, 1, 0, c_white, gl);
22
draw_set_alpha(1);