How to avoid actors spawning on top of other actors
jgomez65
Member Posts: 0
I am developing a game where an actor is randomly spawned somewhere the screen every couple of seconds. The problem is that because the place where the actor spawns inside the screen is determined randomly, sometimes the new version of the actors appears on top of the old version of the actor that is still present in the screen (the old one hasn't been eliminated yet by the player)
Is there a way to avoid actors spawning on top of each other while still maintaining the random element of the game? (meaning the player doesn't know what part of the screen the actor is going to spawn)
Thanks
Is there a way to avoid actors spawning on top of each other while still maintaining the random element of the game? (meaning the player doesn't know what part of the screen the actor is going to spawn)
Thanks
Answers
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User