this is my current situation.
i have enemies spawning randomly around the player. however sometimes the enemies spawn ontop of the player or so close to it that it is imposseble to stop. how do i prevent this from happening?
this is my current code.
random(player.X+2000,player.X-2000)
random(player.y+2000,player.y-2000)
thanks