Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

load_tmx() only generates a Tileset if the Tileset element contains an Image element #301

Open
benfrussell opened this issue Nov 15, 2017 · 1 comment
Labels

Comments

@benfrussell
Copy link

benfrussell commented Nov 15, 2017

load_tmx() only generates a tileset if the tileset element contains an image element. TMX files can contain tilesets made up of tile elements, and if that's the case that tileset will not be loaded with cocos. This causes a crash later in the loading process if those tiles are used anywhere.

As of v0.9 of the tileset format, the image element for these tiles can be stored as a child of the tile.

My case of a valid tileset that will not be loaded correctly with load_tmx():
capture

@benfrussell
Copy link
Author

Created a pull request of a fix for this issue, #304

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants