I seem to be having this problem when two objects are overlapping each other and a "bullet" hits the objects at the same spot. They are both getting hit (when the bullet should only be hitting one of the two). Is there a way to make one object only pick one other object upon collision?
Basically the way the algorithm is set up, both mobs die at the same time, but only one is registering with my tracking algorithms. If I was expecting two mobs to die, but only one registers upon death, the player is only rewarded for one death. Sure I can track the number of destroys that happen, but the section of code that tracks the instance variable for health only seems to track it for one of the two mobs. The code looks like this:
Family: Current HP <= 0 ---> addCash then Destroy