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

21 lines
451 B
Plaintext

if pause_movement() { exit; }
if !created_damage_objects {
hurt_instance = instance_create_depth(x, y, 0, o_all_hurt);
with(hurt_instance) {
damage = other.damage;
mask_index = other.sprite_index;
image_xscale = other.image_xscale;
image_yscale = other.image_yscale;
}
created_damage_objects = true;
}
// When done, stop damage
if floor(image_index) >= 3 {
if instance_exists(hurt_instance) {
instance_destroy(hurt_instance);
}
}