EvilZone

Programming and Scripting => Scripting Languages => Topic started by: Psycho_Coder on November 23, 2014, 01:56:55 PM

Title: [Help][Python] pyTMX Tileset loading
Post by: Psycho_Coder on November 23, 2014, 01:56:55 PM
I made a little tile set using tiled ( http://www.mapeditor.org/ ) I have attached both the files the sprite and the .tmx file. I followed up with pytmx docs but they don't have much examples  and just the API reference without examples is getting a bit troublesome. To be honest I didn't find much useful examples even after searching youtube for some example videos or tutorials on pyTMX. Can someone provide some nice examples explaining how to use it and probably some examples too ?

EDIT : I wanna use pyTMX to load tile map as pygame Surfaces. using pytmx.load_pygame("first_tile.tmx") we get surfaces but using the image tiles isn't working well.

Thank you.


Screenshot

(http://i.imgur.com/GITaOzv.png?1)