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

Autile Import Support for Tiled Importer #417

Open
ahmutkadim opened this issue Dec 28, 2023 · 7 comments
Open

Autile Import Support for Tiled Importer #417

ahmutkadim opened this issue Dec 28, 2023 · 7 comments

Comments

@ahmutkadim
Copy link

I believe the title is self explanatory, I do not know whether we can write feature requests but adding this would really help. It would be beneficial to be able to import autotiling rules from tiled map editor to haxeflixel so that tiles can be updated in runtime if they must. This would help to better integrate tiled and haxeflixel.

@Geokureli
Copy link
Member

Geokureli commented Jan 2, 2024

Does Tiled export it's autotiling rules into levels? I was under the impression it applied the rules before the level was exported. HaxeFlixel generally recommends using LDtk as it has more feature and is more maintained. According to SeiferTim it even supports this very feature

Edit: I'm not seeing anything about it in Tiled's Json Map format

@ahmutkadim
Copy link
Author

I believe you can choose to embed tileset file to the tmx or json file while creating it.

@Geokureli
Copy link
Member

can you verify this? if you do create a json with this info could you share it here?

@ahmutkadim
Copy link
Author

Terrain.json

@Geokureli
Copy link
Member

what fields should I be looking for?

@ahmutkadim
Copy link
Author

I suspect "tilesets" field and dicts inside it

@Geokureli
Copy link
Member

Geokureli commented Jan 2, 2024

I see wangsets in there, but truthfully haxeflixel doesn't yet support full wangtiles, there were talks about allowing custom autotile methods in FlxTilemap without needing to override FlxTilemap's autoTile methods. that could be a great first step towards wang tiles, and generating autotiling methods from tiled data

If you would like to work on this that'd be great, otherwise I don't think I'll personally have time for this in the near future

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

No branches or pull requests

2 participants