Check to see if the new spawn location is different than the previous one?
Hi all,
I have an issue with spawning enemies. My script successfully spawns enemies randomly and different locations. However, time to time it spawns at the same location which makes it ver difficult for the player to deal with the enemy. I have not been successful in writing a script to check the new spawn location with previous one and make sure they are different. Any help would be appreciated.
Thanks.
Comment
Best Answer
Answer by Ralp7 · Dec 10, 2016 at 01:03 PM
I have created an example. I hope it helps. Example Project
Thank you. Very generous of you. Would you like to post your answer in the answer section so I can accept it?