Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_shadowman_tommygyn_rouxls_Draw_0

(view raw script w/o annotations or w/e)
1
var angle = gun_angle;
2
if (type == 0)
3
    angle = 0;
4
var _index = 0;
5
if (firefx > 0)
6
{
7
    _index = 1;
8
    firefx--;
9
}
10
if (sprite_index != spr_shadowman_idle_b && sprite_index != spr_shadowman_reload)
11
    draw_sprite_ext(spr_shadowman_gun, _index, x + 6 + lengthdir_x(gunshake, gun_angle), y + 63 + lengthdir_y(gunshake, gun_angle), image_xscale, image_yscale, gun_angle + 180, image_blend, image_alpha);
12
draw_sprite_ext(sprite_index, image_index, x + (gunshake / 3), y, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
13
if (gunshake > 0)
14
    gunshake = 0;