Enemies overlapping each other?

(Ben Smith) #1

So I’m making a top down shooter game and I’v made it so the enemies move towards the player using moveTowards()

moveTowards(player.x, player.y, 2, “enemy”)

My problem is that the enemies move over each other and eventually overlap (Even though I’v set type “enemy” to the solidType in moveTowards()) I’m new to Flashpunk so it’s probably something really obvious.

(Zachary Lewis) #2

Here are a few things I’d check:

  1. Do your enemies have their type set to “enemy”?
  2. Do your enemies have proper hit boxes?
  3. Are your enemies’ graphics properly aligned with the hit box?

If all of those are correct, we might need to see source.