Author Topic: [Help][Python] pyTMX Tileset loading  (Read 770 times)

0 Members and 1 Guest are viewing this topic.

Offline Psycho_Coder

  • Knight
  • **
  • Posts: 166
  • Cookies: 84
  • Programmer, Forensic Analyst
    • View Profile
    • Code Hackers Blog
[Help][Python] pyTMX Tileset loading
« 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

« Last Edit: November 23, 2014, 02:34:13 pm by Psycho_Coder »
"Don't do anything by half. If you love someone, love them with all your soul. When you hate someone, hate them until it hurts."--- Henry Rollins