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

Isometric depth sorting in editor #299

Open
JernejHabjan opened this issue Dec 13, 2023 · 0 comments
Open

Isometric depth sorting in editor #299

JernejHabjan opened this issue Dec 13, 2023 · 0 comments
Labels
Enhancement New feature or request

Comments

@JernejHabjan
Copy link

Is there an option for some depth sorting in editor itself?

In Editor
image

In game:

this.children.each((child: any) => {
      child.depth = child.y;
      // possibility also to include custom Z axis
      if (child inherits ZComponent) {
        const z = child.z;
        child.depth = child.y + z;
      }
});

image

@PhaserEditor2D PhaserEditor2D added the Enhancement New feature or request label Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants