- Home /
Spawning a specific Tile in a random position a certain distance from the player character
So i'm making a 2D game and I am using a Tilemap. I want to spawn a specific Tile at a random location on the Tilemap, but it has to be 6 tiles away from the player characters Tile position (the player takes up 1 tile). Of course the player will be moving in the game, so i'm looking to make this happen in real time, and continue to happen every 10 steps the player takes. Does anybody have any experience doing this? I'm not really sure where to start on this one. Any help would be greatly appreciated, thanks!
Answer by inhabitcode · May 02, 2019 at 02:04 AM
This isn't an answer, but I'm looking for that exact answer to your problem as well. If you find the answer would you mind letting me know, and I'll do the same for you if I'm lucky enough to come across it also. Thanks
Your answer
Follow this Question
Related Questions
Tilemaps making feature 1 Answer
Can you add sprites to existing sprite sheet without breaking the tile pallet and in-game tiles 0 Answers
How can I access to a tile properties in a Tilemap? 0 Answers
I can‘t assign a folder to my tile palette,I cannot assign a folder to my tile palette 0 Answers
Unity 2D TileMap Rule Tile Carpet 1 Answer