Corruption of rotated tiles


(Artem) #1

When I rotate my tiles in Tile Map editor, and then using tmx file in c++ with SFML, the rotated tiles are corrupted. How can I solve this? This is what i got. What’s the problem? Sorry, for my English.


(Thorbjørn Lindeijer) #2

Probably the SFML map reader / renderer you’re using does not support rotated tiles. You can try digging into its code or report the issue to its author.

There are three SFML map loaders mentioned in the documentation. Which one are you using?


(Artem) #3

I think, none of them. I’m using third party class that not even in the documentation. Can you tell me wich one map loader is support rotating?


(Thorbjørn Lindeijer) #4

No, sorry, I didn’t try any of them and never used SFML.


(Artem) #5

Okay, I will try one of this loaders, thanks.


(Artem) #6

Okay, I solved this by using this library http://trederia.blogspot.co.uk/2013/05/tiled-map-loader-for-sfml.html
Here is a result