Undertale script viewer

← back to main script listing

gml_Object_obj_cogsmall_Draw_0

(view raw script w/o annotations or w/e)
1
if (ck == 0)
2
    siner += 6;
3
if (ck == 1)
4
    siner -= 6;
5
if (image_xscale >= 2)
6
    draw_set_circle_precision(8);
7
else
8
    draw_set_circle_precision(4);
9
for (i = 0; i < cogno; i += 1)
10
{
11
    draw_set_color(c_maroon);
12
    if (image_xscale < 2)
13
        draw_circle((x - (0.3 * image_xscale)) + (lengthdir_x(8, ((i / cogno) * 360) + siner) * image_xscale), (y - (0.3 * image_yscale)) + (lengthdir_y(8, ((i / cogno) * 360) + siner) * image_yscale), 2 * image_xscale, 0);
14
    if (image_xscale >= 2)
15
        draw_circle((x - (0.4 * image_xscale)) + (lengthdir_x(8, ((i / cogno) * 360) + siner) * image_xscale), (y - (0.4 * image_yscale)) + (lengthdir_y(8, ((i / cogno) * 360) + siner) * image_yscale), 2 * image_xscale, 0);
16
}
17
if (image_xscale < 2)
18
    draw_sprite_ext(sprite_index, 0, x + offx, y + offy, image_xscale, image_yscale, 0, c_white, 1);
19
if (image_xscale >= 2)
20
    draw_sprite_ext(spr_cogmed_e, 0, x + offx, y + offy, image_xscale / 2, image_yscale / 2, 0, c_white, 1);