Hey everyone, I’m using TiledSharp to load TMX maps that I made in Tiled.
My issue is, rotation doesn’t work properly. I am using the FlipHorizontally and FlipVertically values that are found in TmxLayerTiles. This is how I’m using it:
Now this seems to work sometimes, Other times not so much. This is how a map should look:
The 3 tiles on the top are un-rotated, While the three in the bottom left are the same tiles, just rotated to make it vertical.
In the game, this is how it looks:
So the bottom right tiles are rotating but the left ones don’t? I’m using only one tileset, and I’m loading it in as an image. Checking the GID Values for the tiles gives a weird result, Every value is +1 more than the value of the gid in the tileset.
The largest gid I’m using should be 289, but by debugging I notice every tile has a gid +1 more than the tileset value, So the 289 tile gives a gid of 290 but looks like the 289.