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

Add depth offset #501

Closed
Annoraaq opened this issue Nov 10, 2024 · 0 comments
Closed

Add depth offset #501

Annoraaq opened this issue Nov 10, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@Annoraaq
Copy link
Owner

A custom y-offset for the sprite/container depth. In GridEngine the depth sorting of characters depends on their character layer and on their y pixel position. By setting a depthOffset you can change the y pixel position for the depth sorting without changing the actual y pixel position.

For example: Consider two characters A and B that are on the same character layer. If char A is on y pixel position 100 and char B is on y pixel position 120, then char B would be rendered in front of char A. If you set depthOffset = -50 for char B then char A would be rendered on top of char B instead (because the depth relevant y pos of char B is 120 - 50 = 80 and that of char A is 100).

@Annoraaq Annoraaq added the enhancement New feature or request label Nov 10, 2024
@Annoraaq Annoraaq self-assigned this Nov 10, 2024
@github-project-automation github-project-automation bot moved this to Backlog in Development Nov 10, 2024
Annoraaq added a commit that referenced this issue Nov 10, 2024
Annoraaq added a commit that referenced this issue Nov 10, 2024
Annoraaq added a commit that referenced this issue Nov 11, 2024
@github-project-automation github-project-automation bot moved this from Backlog to Done in Development Nov 11, 2024
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
Status: Done
Development

No branches or pull requests

1 participant