Skip to content

Add optional sortByY param to tilemap createFromObjects method#7183

Merged
photonstorm merged 2 commits intophaserjs:v4.0.0from
saintflow47:v4.0.0
Dec 23, 2025
Merged

Add optional sortByY param to tilemap createFromObjects method#7183
photonstorm merged 2 commits intophaserjs:v4.0.0from
saintflow47:v4.0.0

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.

@photonstorm photonstorm merged commit 8505db5 into phaserjs:v4.0.0 Dec 23, 2025
@photonstorm
Copy link
Collaborator

👍

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.

2 participants