Deltarune script viewer

← back to main script listing

gml_Object_obj_queen_throwkris_Draw_0

(view raw script w/o annotations or w/e)
1
if (throwXcon == 1)
2
    draw_sprite_ext(spr_susieb_throwralseiready_setup, 0, x, y - ralseiy, 2, 2, image_angle, c_gray, image_alpha);
3
if (throwXcon == 2)
4
{
5
    draw_sprite_ext(spr_susieb_throwralseiready_setup, 0, x, y - ralseiy, 2, 2, image_angle, c_white, image_alpha);
6
    if (ralseiy > 0)
7
        ralseiy -= 4;
8
    if (ralseiy < 1 && !instance_exists(obj_writer) && !instance_exists(obj_queen_kristhrown))
9
    {
10
        sprite_index = spr_susieb_throwralseiready;
11
        image_index = 0;
12
        throwXcon = 3;
13
        throwcon = 1;
14
        angledraw = 1;
15
        throwready = 0;
16
    }
17
}
18
draw_self();
19
if (angledraw == 0)
20
    throwalpha = 0;
21
if (throwXcon == 3 && !instance_exists(obj_queen_throwtarget))
22
    exit;
23
if (angledraw == 1)
24
{
25
    if (throwalpha < 1)
26
        throwalpha += 0.125;
27
    draw_set_alpha(throwalpha);
28
    draw_set_color(merge_color(c_blue, c_white, 0.5));
29
    for (i = 0; i < 12; i += 1)
30
    {
31
        fr = 2;
32
        draw_circle(kx + (lx * ((i * fr) + fro)), ky + (ly * ((i * fr) + fro)) + krisyoff[(i * fr) + fro], 4, 0);
33
        draw_line_width(kx + (lx * ((i * fr) + fro)), ky + (ly * ((i * fr) + fro)) + krisyoff[(i * fr) + fro], kx + (lx * (((i + 1) * fr) + fro)), ky + (ly * (((i + 1) * fr) + fro)) + krisyoff[((i + 1) * fr) + fro], 2);
34
        draw_sprite_ext(spr_werewire_throwarrow, 0, kx, ky, 2, 2, angle, c_red, 1);
35
    }
36
    draw_set_alpha(1);
37
}