Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_bullet_almond_Draw_0

(view raw script w/o annotations or w/e)
1
if (active)
2
{
3
    if (draw_eye)
4
    {
5
        draw_sprite_ext(sprite_index, image_index, xprevious, yprevious, image_xscale, image_yscale, image_angle, c_gray, image_alpha);
6
        draw_self();
7
        draw_sprite(spr_almond_iris, 0, x + lengthdir_x(6 * eye_dist, my_dir), y + lengthdir_y(6 * eye_dist, my_dir));
8
    }
9
    else
10
    {
11
        var dir = irandom(360);
12
        var dist = irandom(10);
13
        draw_sprite_ext(sprite_index, image_index, x + irandom_range(-2, 2), y + irandom_range(-2, 2), image_xscale, image_yscale, image_angle, image_blend, image_alpha);
14
        if (image_blend == c_white)
15
            draw_sprite(spr_almond_iris, 0, x + lengthdir_x(dist, dir), y + lengthdir_y(dist, dir));
16
    }
17
}
18
else
19
{
20
    draw_self();
21
}