I'm making a shooting 2D game like Wild Guns (SNES)
If you don't know the game:
I have a character, and I have defined 6 possible positions where the enemies can appear.
So, when the player touch an enemy, this is destroyed, and I create a new object of the type enemy.
The problem I'm facing is that the enemies can appear in the same position (overlaping).
What I want to do (and I can't figure) is how can I detect if a position is used, and if it is then spawn in other position to avoid the overlaping.
Sorry if you don't understand me, sounds a little complicate.
Here is my capx if you want to see by yourself the issue:
Thanks in advance.