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

Some offsets are incorrect in createFromObjects() #5789

Closed
samme opened this issue Jul 22, 2021 · 1 comment · Fixed by #5790
Closed

Some offsets are incorrect in createFromObjects() #5789

samme opened this issue Jul 22, 2021 · 1 comment · Fixed by #5790

Comments

@samme
Copy link
Contributor

samme commented Jul 22, 2021

Version

  • Phaser Version: 3.55.2 and earlier

Description

In Tiled, tile objects have origin (0, 1) and all others have origin (0, 0).

Phaser's createFromObjects() places tile objects correctly but other objects incorrectly, because it uses (0, 1) for all of them.

Here the coins are placed correctly but exit and sun are not:

features test createFromObjects

Example Test Code

https://codepen.io/samme/pen/PomJVrL

@photonstorm
Copy link
Collaborator

Thanks for opening this issue, and for submitting a PR to fix it. We have merged your PR into the master branch and attributed the work to you in the Change Log. If you need to tweak the code for whatever reason please submit a new PR.

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 a pull request may close this issue.

2 participants