Deltarune script viewer

← back to main script listing

gml_Object_obj_throwralsei_ch1_Draw_0

(view raw script w/o annotations or w/e)
1
draw_self();
2
if (angledraw == 1)
3
{
4
    if (throwready == 1)
5
    {
6
        if (throwalpha < 1)
7
            throwalpha += 0.125;
8
        draw_set_alpha(throwalpha);
9
        draw_set_color(merge_color(c_blue, c_white, 0.5));
10
        for (i = 0; i < 12; i += 1)
11
        {
12
            fr = 2;
13
            draw_circle(rx + (lx * ((i * fr) + fro)), (ry + (ly * ((i * fr) + fro)) + ralyoff[(i * fr) + fro]) - 20, 4, 0);
14
            draw_line_width(rx + (lx * ((i * fr) + fro)), (ry + (ly * ((i * fr) + fro)) + ralyoff[(i * fr) + fro]) - 20, rx + (lx * (((i + 1) * fr) + fro)), (ry + (ly * (((i + 1) * fr) + fro)) + ralyoff[((i + 1) * fr) + fro]) - 20, 2);
15
            draw_sprite_ext(spr_throwarrow_ch1, 0, rx, ry - 20, 2, 2, angle, c_red, 1);
16
        }
17
        draw_set_alpha(1);
18
    }
19
    if (throwready == 0)
20
    {
21
        draw_set_color(c_red);
22
        draw_sprite_ext(spr_throwarrow_ch1, 0, rx, ry - 20, 2, 2, angle, c_white, 1);
23
    }
24
}