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

No support for external tilesets #20

Open
Senevri opened this issue Dec 15, 2013 · 1 comment
Open

No support for external tilesets #20

Senevri opened this issue Dec 15, 2013 · 1 comment

Comments

@Senevri
Copy link

Senevri commented Dec 15, 2013

When creating a tileset, the tileset entry is replaced by a reference in the tmx file like so:

- <tileset firstgid="34" name="player" tilewidth="32" tileheight="60">
-  <image source="../gfx/player.png" width="128" height="300"/>
- </tileset>
+ <tileset firstgid="34" source="player.tsx"/>

partially bad planning on Tiled's part? Perhaps. Regardless, I just broke my level.

@Senevri
Copy link
Author

Senevri commented Dec 15, 2013

added the following to the if conditional in TmxTileSet.hx:

source = new Fast(Xml.parse(Assets.getText(Std.string("maps/" + source.att.source))));
source = source.node.tileset;

and made the else branch execute always.

Problem is the magic "maps/" string, which could be resolved by getting the path when tmxmap is loading from file.

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

No branches or pull requests

1 participant