Forum rules - please read before posting.

Sorting map using pivots - walk behind item

edited September 21 in Technical Q&A

Hi everyone,

I've a confusing situation, regarding using pivots to do the depth sorting (which is a great new feature) - but in this instance I've a few issues, I think caused by my very specific use case.

If I've understood correctly, I can now leave all items on layer 0, and their individual pivot points are used, to compare to the main charactres pivot point (on his feet) to be correctly sorted, based on screen Y height (I followed the tutorial to set this up)

The problem I have is illustrated in the attached image.
https://drive.google.com/file/d/1rree1BUwNLJAkyW1HxuE7WhA5JBssWAI/view?usp=sharing

  • My character needs to walk behind, and in-front of the desk (which works perfectly) using a pivot at the foot of the desk. (the blue line)
  • The Mug, is a seperate tiny sprite (as it gets picked up) - with it's own pivot at It's base.(the red line)
  • In order for the mug to render infront of the desk (it's sat on it) i need to change the layer order, but this means the character can't walk in-front of the mug - only behind it.

I've thought about multiple solutions to this, including exporting a much taller mug sprite, to encompass the full height of the desk then set the mug pivot to the same place the desk pivot is (the blue line on the carpet) so they can all exist on the same layer, and have the character correctly walk in-front and behind the mug and desk, but this seems convoluted?

Is there something I'm missing, some other simpler way to have an object be infront of another object at a higher height but be treated as if it's on the desk when the character walks around it?

Hope this makes sense, and thanks in Advance for any ideas.

Comments

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.