Hello fine folks.
I am trying to figure out how to instantiate prefabs based on the grid of the tilemap. Right now I can set tiles at a particular X and Y in the tilemap using Tilemap.SetTile but I can't put prefabs into my map at positions relative to those coordinates.
So for example, lets say you have a 10 tile by 10 tile room for your platformer game map. Its totally open in the inside with a wall all the way around it. I want to put a prefab "player" object or "spikes" object etc in the room. I can't add the prefab TO the tilemap obviously, as its not a tile. However, I do want to place it in the room, without resorting to figuring out specific pixel distances if possible.
The only alternative I have found so far is to use the size of the tiles in pixels and then do some crazy multiplication mess, but I am thinking there must be an easier way.
So tell me how you do it (or how you WOULD do it).
Thanks!