[Fixed]Force a object to stay "In Front" of everything else.

Started by EchosofNezhyt, Sat 09/06/2012 23:34:45

Previous topic - Next topic

EchosofNezhyt

Ok so I messed with baselines but I can't get this object to stay infront of my charater.

monkey0506

Just to be clear, what exactly have you done? Setting the baseline to 0 should use the Character.y/Object.Y as the baseline, otherwise whichever has the higher baseline should be drawn in front. Also, which graphics driver? I do see that the manual notes that for IgnoreWalkbehinds the D3D driver doesn't work properly. Probably unrelated, but just brainstorming since you gave relatively little detail.

Ghost

Is your object moving? You can set the baseline manually with
OBJECT.Baseline = value.
Since a character is "behind" an object when his y-position is above the baseline,
object.Baseline = player.Baseline-1
should work.

EchosofNezhyt

#3
Awesome ghost ur method worked. *Facepalm*

Thanks again.

SMF spam blocked by CleanTalk