- Home /
2D/Orthographic Tile Alignment Issue
Could anyone explain why my 2D tiles are not lining up? My tile sizes are 32px x 32px where the isometric tiles are 30px x 15px. The resolution is 960 x 640 with an orthographic camera of size 5.
Thanks for your time!
I added this in my camera's init script: camera.main.orthographicSize = Screen.height / 64.0f / 2.0f;
I uploaded a screenshot with 1024x768 resolution, I also added an untextured sprite mesh to compare.
Im missing something obvious here. The tiles already seem to be pretty aligned.
$$anonymous$$y apologies, the screenshots are terrible quality. Let me half the camera size to show the sprites in their original dimensions as the problem is more clear.
The tiles are overlapping each other by an extra pixel or two, but the maths seems to be correct (so I believe)