I am having trouble with the placement of the zombie enemy in a new game i am making called Defender. The main objective of the game is to shoot the zombies and kill them so they don't get too close to you. I am still in the early stages of the game but i have already encountered a problem. The problem is with the placement of the zombies. I don't know how to get the clone of the zombies to start outside of the edge and i am asking for some help from the community to solve this issue.
With my low level of coding knowledge i have no idea how to solve this problem.
Any feedback would help!
Yes but the thing is that i need them to go to a random position outside of the edge. The problem is, I don't know how to do that. I am not trying to get all the clones to go to a specific place on the map.
The distance variable is so you can quickly specify the distance from the stage you want them to spawn. I set it to 20 just for demonstration purposes.
Long time no see (outside of school, of course)!
Also, is this the same zombie game you were making this morning? Because it kinda looks like it.
If so, I thought I told you I could help you tmr!
Hey i have one more issue with your fix, i was going to ask is you know why all of the zombies are only spawning on the top and the bottom of the screen.