Having an issue in an arrow defense game where my bullet collides with two enemy's who's hitboxes are overlapping on their leading side, causing both to be destroyed by a single bullet but only be counted as one.
Here's what my code looks like:
Bullet on collision with Enemy - Destroy Bullet, & Subtract Bullet.Damage from Enemy HP
& if HP </= 0 - Destroy Enemy, & Subtract 1 from Number_of_Enemies, & add 1 to Score
Game Completes when Waves = #, & Number_of_Enemies = 0
My Testing Information is showing more Enemies are being destroyed then whats being created.
Edit: Actually now that i put it in writing and think about it i have no idea whats going on.. but like i said, i got more kills then enemies.