Im making a platform game for the learning experience, and im having a problem.
The tiles are overlapping eachother by one pixel. Or at least that's what i think is happening. The result is a gray line between tiles and my coordinates are thrown further and further off as the player goes right.
I assumed mapTileX/Y are the indices of the tile and that TILESIZE is
what it says and that it is a square. If all that is true it should work as that is what I do tiles[i][j].sprite.setPosition(j*32, i*32); and it works with no overlap.
The "gray line" is from the blue sky background i have. When i disabled that, black lines appeared because the background was black. So for some reason the background png is coming through between the cracks of the tiles. The alpha of ever pixel in the tile is 255 so im not sure why thats happening.