Random Spawn That Doesn't Repeat Spawn Location
![immor7al](http://forums.gamesalad.com/applications/dashboard/design/images/defaulticon.png)
Big shout outs to tshirtbooth for raising the question, "how do we make a random that doesn't repeat?" and big shout outs to harrio who answered that question and gave us the project file to use.
My adaptation works in one scene and regards spawning, as opposed to changing scenes.
It basically makes sure that if an actor is overlapping with its spawn location, then the game will spawn an actor in one of the other spawn locations.
You can download the project to see what the triggering is like.
To play, just hit the spacebar key to spawn and click on the brown squares to destroy them.
http://gamesalad.com/game/play/60318
You can use this for multiple games, including shooter games so that enemies or players don't spawn on top of each other.
My adaptation works in one scene and regards spawning, as opposed to changing scenes.
It basically makes sure that if an actor is overlapping with its spawn location, then the game will spawn an actor in one of the other spawn locations.
You can download the project to see what the triggering is like.
To play, just hit the spacebar key to spawn and click on the brown squares to destroy them.
http://gamesalad.com/game/play/60318
You can use this for multiple games, including shooter games so that enemies or players don't spawn on top of each other.
Comments
Thanks for this demo, however is there anyway for me to see the code that you used to create this? For some reason I can't figure out how to load this into gamesalad to see the way you have it set up.
Thanks!