Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: simulacra on Tue 10/05/2005 10:35:18

Title: SetObjectBaseline problem [SOLVED]
Post by: simulacra on Tue 10/05/2005 10:35:18
I have used the following code to make the player appear in front of some map objects. However, the character still appears behind the objects. What's wrong here?

SetObjectBaseline(0,0);
SetObjectBaseline(1,0);
SetObjectBaseline(2,0);
SetObjectBaseline(3,0);
Title: Re: SetObjectBaseline problem
Post by: Gilbert on Tue 10/05/2005 11:40:57
From the manual:
QuoteYou can disable the baseline (and revert to using the base of the object's image on the screen) by passing 0 as the baseline.

So, what you're doing was just making the baselines of the objects at the bottom lines of them, not room coordinate 0.
You may try setting them to 1 for the effect.
Title: Re: SetObjectBaseline problem
Post by: simulacra on Tue 10/05/2005 11:57:04
Ah ok. Thanks!