Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting a Invaild Tileset Reference
#7
(11-13-2019, 08:17 AM)megamarc Wrote: Hi again,

Spritesets are loaded from a pair of files with the same base name, different extension:
  • 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)
In the zipfile you provide, the associated "player.txt" required by "player.png" is missing. 

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 Smile
Were you able to get the tmx files to load? If so, how did you fix the issue with invaild tileset reference?
Reply


Messages In This Thread
RE: Getting a Invaild Tileset Reference - by RootBeerKing - 11-13-2019, 08:27 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)