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
Spacing field in tmx file is not working #29
Comments
I think we dont have any example using that field, so it's very likely broken. I will test this against the new flame_tiled |
Ok cool! |
Any news? |
No news, if anyone want to take on this feel free! :) |
tiled.dart/lib/src/tileset/tileset.dart Lines 212 to 213 in dece94d
This is the reason. Spacing shouldn't be added to the source rectangle. Removing the spacing fixes the issue. |
Do you want to put up a PR for the fix? :) |
I see a PR is open for this but it is not approved. Is that not the correct fix for this issue? |
I think it was just forgotten. Would be good if someone depended on the branch and tried the fix. |
@spydon I just tried to test that branch but the problem still persists. After debugging I found out that it was failing because spacing and margin parameters were not copied in Edit: This is required only for cases where an external tileset file is used. For embedded tilesets, original fix should be enough. |
@ufrshubham interesting, I'm willing to take a look later today. |
This has been fixed with pull request #41 and I believe has been verified by @ufrshubham |
Yes, I've tested that PR and it works. |
The above tiles image in Tiled Map Editor with
spacing = "1"
is working fine. But when it comes to flame_tiled its not working.The output I get is the below image with those yellow lines which are from the tile image above.
I am just a noob and I don't know if this occurs due to my code. Also, in the example file of flame_tiled repo the image doesn't have those yellow grid lines.
The tmx file can be found in the repo attached below.
Please run this game for further reference
https://github.com/Jcupzz/Super-Mario.git
The text was updated successfully, but these errors were encountered: