Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: EchosofNezhyt on Sat 09/06/2012 23:34:45

Title: [Fixed]Force a object to stay "In Front" of everything else.
Post by: EchosofNezhyt on Sat 09/06/2012 23:34:45
Ok so I messed with baselines but I can't get this object to stay infront of my charater.
Title: Re: Force a object to stay "In Front" of everything else.
Post by: monkey0506 on Sun 10/06/2012 00:57:20
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.
Title: Re: Force a object to stay "In Front" of everything else.
Post by: on Sun 10/06/2012 00:57:39
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.
Title: Re: Force a object to stay "In Front" of everything else.
Post by: EchosofNezhyt on Sun 10/06/2012 01:26:26
Awesome ghost ur method worked. *Facepalm*

Thanks again.