I have found this tileX to layout X expression.(Can't remember well)
So I found that tile second tile's finishing part of the Y axis is tileY=1
So does that tileX start with zero?
Is there any easier way to see the tile.X,tile.Y without counting by your self?
Yes. Tiles start at 0,0 on top left corner. Easiest way to count them is to make a simple action
Develop games in your browser. Powerful, performant & highly capable.
Thank you.So If I want to add an object on top of,say tile X0 Y0,Will it's origin be in the center of the of the tile or a corner?I am asking this because I had to use .5 values to put it correctly.
Yes, If You create/spawn object at (Tilemap.TileToPositionX(0), Tilemap.TileToPositionY(0)) it will be in center of that tile.
Tank you so much