OK, I may have researched myself into complete confusion!
Thanks to those who have already reached out trying to help guide me in the right direction so far. Let me please lay out what I’m trying to do and what I’ve tried so far. Some of the things I was asking for in the past, I think I’ve eliminated them based on evolved thinking.
Picture a set of 3D models (all 1x1) laid out in a 5x10 pattern, all aligned up properly along the XYZ axis. Let’s call the lower left tile the Starting Point and the most upper right tile the End Point. In my mind, I’m thinking the Starting Point is 0,0 and the End Point 5,10. Now this thinking might be completely wrong. I don’t know.
Through the course of the game, the character’s movement will be decided by a random number ( later to be a dice roll). The movement will not be like in the game Chute and Ladders where they follow along the path of 0,1 0, 2 0,3, etc… The layout will have predefined points to move to. For example the Starting Point might be 0,0 and subsequent moves might take it to 1,3 or 2,4 or 3,4 or 4,5
At first my mind was wrapped around having all these 3d Tiles placed by an array automatically, and that may still be the answer. Or I could predesign the layout since there will be approximately 15 levels of new designs of the same tiles. I would then call the levels by way of a Game Manager. If I lay out the design myself and place the objects into an array, (Tile 0,0 in the 1st element of the array, Tile 0,1 in the 2nd element of the array and so forth), do I check on which tile the character is on by seeing which element in the array it is on? For example if the “Lava” Tile is placed in the layout in position 3,5…that would end up placing it in the 15th element in the array. If I write a function to check if the character has collided with the Lava Tile, would I have to see if the character is on the 15th element of the array? And if that’s the case, would I have to change the function attached to the Lava Tile for each level to match where it’s located in each array? What if the Lava Tile is placed in position 1,2 next level?
Next I started thinking maybe I don’t need an array, I’ll just place them all in a Grid using the UI panel and the Grid Layout Group script. But that only works with Sprites, not 3D models.
I could lay down a Plane and lay the objects on that.
Honestly, I’ve researched myself to complete confusion. Now the answer might be very easy for someone with more experience, but I’m baffled. I don’t want anyone to write the script for me, I just want a good swift kick in the exact direction I should be looking. I just want to be able to define where the Tiles are so that when a character moves, we know what it’s landing on.
Sorry for making this one so long, I was just trying to be specific.
Thanks again for even reading this far
Doc