Objects behind a walk behind.

Started by pixg, Sat 02/02/2013 13:25:56

Previous topic - Next topic

pixg

I have objects on a desk, a have a man behind the desk, I have created a walk behind area so the the man does not appear to stand on the desk but behind it, my problem is that the objects also obey the walkbehind area and have now disappeared from my view.

Ghost

Objects do not need a walkbehind area; they already cover everything "behind them" (meaning higher than their bottom-most pixel). Try deleting the walkbehind area and see if your setup works (it should). You can also set an objects baseline manually or at runtime.

[edit]
This will only work if your desk IS an object, and not part of the background scene.

Khris

If your desk isn't an object, set the baselines of the objects on top of the desk to a higher value than the baseline of the walkbehind.

Say the walkable area around the desk  has a hole spanning across y-coordinates 130-140. Set the walkbehind's baseline to 133 and the objects' baseline to 136.

SMF spam blocked by CleanTalk