Good day everyone!
I'm currently in the process of building a 2D Game, and as for my next step I'd like to randomly spawn collectable gems (prefabs) on top of my tiles for the player to collect.
My tilemap is generated at runtime.
I've tried various solutions however I can't seem to get it quite right. I know that I'm supposed to get the positions of the tiles and check whether the tile below is empty or not, however I'm not sure how to implement this, and I'd really appreciate the help! Thank you. :)
↧