This repository has been archived on 2025-12-11. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
BitBlaster/objects/o_archer/Draw_0.gml
2025-04-20 15:57:23 +03:00

7 lines
384 B
Plaintext

draw_sprite_ext(sprite_index, image_index, x, y, face, image_yscale, image_angle, image_blend, image_alpha);
var _healh_pct = hp / max_hp;
var _hp_img = _healh_pct * (sprite_get_number(s_enemy_health) - 1);
if instance_exists(o_player) {
draw_sprite_ext(s_enemy_health, _hp_img, x - 8, y - sprite_height / 2 - 5, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
}