Skip to content

Some offsets are incorrect in createFromObjects() #5789

@samme

Description

@samme

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions