I am making a survival type of game except the enemies run towards you and you have to defeat them before they defeat you. (I plan on porting it to the mobile platform but that later)
What I want is for the player to run onto the screen, and once he becomes a certain distance from the player he starts throwing projectiles. I can get the enemy to work when the enemy is on the right side of the player, but I'm trying to have enemies spawn all around the player.
How do I make the player the object that the enemies base their position off of on either side of the player, then stop and attack. (I got the attacking part, just running on to the screen and stopping from either side is where I'm stuck)