Skip to content

Help moving characters together and overriding depth #161

Answered by Annoraaq
artitj asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @artitj

first of all, thank you for giving us insight into your use case. It is important for us to know which problems occur in projects so we know which features make sense.

Maybe I can shed some light on the inner mechanics of grid-engine.
You seem to be mentioning two issues:

  1. blocking chars
  2. manual depth (zIndex)

Blocking Chars:
Grid-Engine works as follows. If a character is NOT moving, it will block the tile it is currently standing on. If it IS moving it will block both tiles: the one it is leaving and the one it is entering.

Manual Depth:
For non-isometric maps the logic is:
Every sprite that has been added to grid-engine will get a depth (zIndex) of 1000 + y-coordinate on the…

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
4 replies
@artitj
Comment options

@splashsky
Comment options

@lendsp
Comment options

@artitj
Comment options

Comment options

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

Answer selected by splashsky
Comment options

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

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