1
Support / Re: Instantiate a prefab relative to the tilemap grid? How do you do it?
« on: January 31, 2015, 03:59:02 pm »
Thanks UKS!
Basically I am making a random dungeon generator. I know how to do this a few ways, but am exploring additional options with TK2D and think it would be really convenient to use the features I love from TK2D.
What if I wanted to build several prefab dungeon rooms made of tiles and load them into the scene at random? I know how to do this with a loop, but it becomes rather tedious setting each individual tile for the various room types. I was wondering if you have any suggestions on how I could make the rooms beforehand (as prefabs) and then load them into the scene when the map is generated (assume I generate the entire map when the player comes into the dungeon). Can I somehow load them into one tilemap? Do they all need their own separate tilemaps that I will then have to align? Will having 20-30 small tilemaps at once be too computationally expensive vs one large tilemap?
Thanks again for all your help,
Mike
Basically I am making a random dungeon generator. I know how to do this a few ways, but am exploring additional options with TK2D and think it would be really convenient to use the features I love from TK2D.
What if I wanted to build several prefab dungeon rooms made of tiles and load them into the scene at random? I know how to do this with a loop, but it becomes rather tedious setting each individual tile for the various room types. I was wondering if you have any suggestions on how I could make the rooms beforehand (as prefabs) and then load them into the scene when the map is generated (assume I generate the entire map when the player comes into the dungeon). Can I somehow load them into one tilemap? Do they all need their own separate tilemaps that I will then have to align? Will having 20-30 small tilemaps at once be too computationally expensive vs one large tilemap?
Thanks again for all your help,
Mike