The problem is when the global varible 'Crate Health' = 0 all crates are destroyed instead of only the one my bullet collided with. What I have is:
CrateHealth = 3
When Bullet collides with Crate: Subtract 1 from crate health
When Crate Health = 0: destroy crate
This destroys all the crates instead of only the one that got hit. What I am looking for is a way to destroy just the one without having to create multiple sprites.
Thanks