I am creating a wandering monster feature in my game and would like to check for a random monster every X seconds, and based on a random value, if fails, then create a monster at a random location.
The player follows the path of a ground tile ... so I want to create a monster at random ground tile location, which I am able to do. What I want to do is prevent the creation of monster if a monster sprite already exists there.
What would be the best way to do this?