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

Bottom center and other alignments for Tile Layers #3459

Open
eishiya opened this issue Aug 26, 2022 · 2 comments
Open

Bottom center and other alignments for Tile Layers #3459

eishiya opened this issue Aug 26, 2022 · 2 comments
Labels
feature It's a feature, not a bug.

Comments

@eishiya
Copy link
Contributor

eishiya commented Aug 26, 2022

Tiles in Tile Layers are drawn with bottom left alignment in their cells. For isometric and hex maps, it's often more intuitive to draw them with bottom center alignment instead. In cases where the tiles vary in size, this alignment would allow one to reduce the amount of padding required around the tile, and possibly even remove the need to set drawing offsets on the tiles or tileset. This could benefit some orthographic tilesets as well, particularly 3/4 view prop tilesets that often have the prop centered horizontally in the tile.

Perhaps this could be a Tileset setting alongside Object Alignment, called "Tile Alignment", with all the same options, and "Unspecified" being the same as Bottom Left?

#871 could accomplish the same thing as this, but with more work for the user - they would have to manually set the paddings for each tile to center the tiles, whereas offering different alignments would be just one tileset-wide setting. Per-tile alignments could still be useful to reduce the required padding on extremely lop-sided tiles though, so these two feature requests are not mutually exclusive.

@eishiya eishiya added the feature It's a feature, not a bug. label Aug 26, 2022
@ghost
Copy link

ghost commented Aug 27, 2022

My personnal use case of centered alignement is for asymetrical tile, so if centered can be used, there is no need of offsetting the tile because it would place it correctly directly.

AA png

@fallenworld
Copy link

Any news for this? I think this is useful for isometric. I really need this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature It's a feature, not a bug.
Projects
None yet
Development

No branches or pull requests

2 participants