11-13-2019, 08:27 AM
(11-13-2019, 08:17 AM)megamarc Wrote: Hi again,Were you able to get the tmx files to load? If so, how did you fix the issue with invaild tileset reference?
Spritesets are loaded from a pair of files with the same base name, different extension:
In the zipfile you provide, the associated "player.txt" required by "player.png" is missing.
- a png file with all the sprites packed together (player.png)
- a txt describing the rectangles and names of each individual graphic inside the big png. (player.txt)
Also, the funcion call to load the spriteset expects the base name without the extension, line 65 should be:
Code:playerSprite = Spriteset.fromfile("player")
I see the documentation is not clear in this regard.
For a full working example in python, i recommend you to check this project:
https://github.com/megamarc/TilenginePythonPlatformer
Your interest is much appreciated too