Skip to content

Add optional sortByY param to tilemap createFromObjects method #7183

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

Open
wants to merge 2 commits into
base: v4.0.0
Choose a base branch
from

Conversation

saintflow47
Copy link

Please do not update the README or Change Log, we will do this when we merge your PR.

This PR (delete as applicable)

  • Adds a new feature

Describe the changes below:
Setting the optional sortByY attribute in the config sorts tilemap layer objects before creation by y position which leads to objects that are lower on screen being displayed on top of higher objects. Tiled uses this sort order by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant