-
-
Notifications
You must be signed in to change notification settings - Fork 205
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
Help Wanted with PR #1142 add support for multi-tileset layers #1143
Comments
@DelinWorks |
@DelinWorks , Why not using a "'scaled' tileset copy" which all have the same size? Another idea: for correct test data:
And If nothing helps the last one: |
@halx99 @DelinWorks |
@halx99 I think the easiest way is to generate an own 'FastTMXLayer'/'FastTMXSubLayer' format for 'multi-tileset layers' which axmol is supporting. |
@DelinWorks @halx99 |
"Is this feature finished?" or "Is this feature still being worked on?" |
@halx99 axmol2.0 "Is this feature finished?" or "Is this feature still being worked on?" |
Not sure, becase I have not time to check it, original author is @DelinWorks you can ask. |
@DelinWorks axmol2.0 "Is this feature finished?" or "Is this feature still being worked on?" |
I tried to solve this issue, but every time I get artifacts, the tilemap renderer might need a complete rewrite, which I haven't gotten into for a while |
Refer to #1142
Summary: I'm trying to implement multi-tileset layers and for some reason I had this weird bug that I spent 3 days on but to no avail.
My implementation is simple. First, I extracted every field that can belong to one or more layers and made a
FastTMXSubLayer
struct that has those fields, second I made in array inside ofFastTMXLayer
and that array holdsFastTMXSubLayer
s as much as the layer has tilesets used, pretty simple so far. this worked right off the bat! but with some tilemaps weirdly enough I get this bug mentioned in #1142 seems like the_tiles
static array needs to be copied too for each subLayer but that doesn't seem logical because it's not getting changed, also this bug seems to occur IF the first tileset's texture size is smaller than the other tileset's texture which is the thing that struck me the most, Any help would be appreciated!The text was updated successfully, but these errors were encountered: