Skip to content

How to export infinite map to finite map? #3028

Answered by bjorn
lowlighter asked this question in Q&A
Discussion options

You must be logged in to vote

I think you should be able to use TileLayer.region to get the region occupied by tiles. While the region doesn't currently provide much introspection, it does have a boundingRect property from which you can derive the values for startx, starty etc.

Are you writing a custom format entirely or would you actually like to just export as finite map in an existing format supported by Tiled? I think there's still a problem with doing that latter since you can't modify the map passed into the write function, so let me know if you need help with that.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@lowlighter
Comment options

@bjorn
Comment options

@lowlighter
Comment options

@bjorn
Comment options

Answer selected by lowlighter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants