Skip to content

Wield, sometimes my hero have no face, sometimes have, how can i make sure of it ? #944

Answered by dorkster
ndkk asked this question in Q&A
Discussion options

You must be logged in to vote

This is a draw order issue similar to the issue you had with tall tiles. Entities like the player are rendered in the same pass as the tiles on the layer named "object". This happens top-to-bottom, left-to-right. So in your screenshot, the rug tile is to the right of the player, and gets drawn on top as a result.

The solution is to create another layer between the "background" and "object" layers. I'll usually call this the "fringe" layer. Put the rug tiles on the fringe layer, and they'll then always render behind entities.

Replies: 7 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ndkk
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ndkk
Comment options

Answer selected by ndkk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants