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_explosive/Step_0.gml
2025-04-20 15:57:23 +03:00

14 lines
303 B
Plaintext

get_damaged(o_parent_hurt, false, false);
var _health_pct = 1 - (hp / max_hp);
image_index = _health_pct * (image_number - 1);
if hp <= 0 {
instance_create_depth(x, y, -1000, o_explosion);
audio_play_sound(explosion, 0, false);
create_screen_pause(12);
camera_shake(12);
instance_destroy();
}