1
SFML projects / Re: 'Tiled' Tile-map Loader
« on: July 11, 2014, 05:40:20 pm »
Hello !
I'm new in SFML programming, but thank you very much for your tmxloader, it's very useful !
I'm trying to add an object in the map, it's quite easy (I used your example AddRemoveObjects.cpp) but I can't figure out how to give the object a texture.
The object is well created and drawn, I can see it with DrawDebugShape() but it remains an empty box with no texture.
I tried to create a LayerSet with the good texture, AddTile and then use SedQuad on my object, but this has no effect.
Can you help me ?
Thank you !
I'm new in SFML programming, but thank you very much for your tmxloader, it's very useful !
I'm trying to add an object in the map, it's quite easy (I used your example AddRemoveObjects.cpp) but I can't figure out how to give the object a texture.
The object is well created and drawn, I can see it with DrawDebugShape() but it remains an empty box with no texture.
I tried to create a LayerSet with the good texture, AddTile and then use SedQuad on my object, but this has no effect.
Can you help me ?
Thank you !