Skip to content

Question about position of objects #3540

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

You must be logged in to vote

Actually the origin of rectangle and ellipse objects is the top-left, but not for tile objects. This inconsistency is historical, because when the support for tile objects was introduced they were meant for the placement of objects like trees in a top-down perspective. In such games it is common to sort the sprites by their bottom so a bottom origin makes sense.

However, since it was also inconsistent and not best for every game, eventually an "Object Alignment" setting was introduced on the Tileset:

You can use this property to set the alignment of your tile objects (at least, those referring to that tileset) to Top Left. If you've already made a couple of maps though, changing the alig…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Goodlyay
Comment options

You must be logged in to vote
0 replies
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