Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Dualnames on Fri 06/06/2008 22:01:42

Title: Baseline thingy(Solved, thanks to TwinMoon and NicksterG)
Post by: Dualnames on Fri 06/06/2008 22:01:42
Wel, I want a character to appear on top of everything. Objects and characters. So I don;t have to set each objects baseline to each room...
So what should be done in order to achieve it?
Title: Re: Baseline thingy
Post by: TwinMoon on Fri 06/06/2008 22:14:58
The other way round: character.Baseline = 200;  (presuming you use 320x200)
Title: Re: Baseline thingy
Post by: Dualnames on Fri 06/06/2008 22:18:41
Doesn;t work...still behind an object reso is 640x480
Title: Re: Baseline thingy
Post by: NiksterG on Fri 06/06/2008 22:27:13
I've never used the character baseline property, but after reading up on it, I think to draw it in front of everything you have to use SetBaseline(1); in the game_start function.
Title: Re: Baseline thingy
Post by: TwinMoon on Fri 06/06/2008 22:48:54
If you use

cCharacter.Baseline = 480;


the character cCharacter will be drawn in front of everything.

Put this line of code in game_start or in room_Load(). It works on my computer (ok, not the best of argument, I know), I'm using AGS 3.0 btw.
Title: Re: Baseline thingy
Post by: Dualnames on Fri 06/06/2008 22:55:04
Ok,i just figured what i was doing wrong. I set baseline 200 whilst not being aware that it can reach up to the game's screen height resolution(480 in this case).
Praise to you Twinmoon. I'm using AGS 3.01 but I think it will work just fine.
Title: Re: Baseline thingy(Solved, thanks to TwinMoon)
Post by: NiksterG on Fri 06/06/2008 23:04:22
Hey, come on, I was close... ::)
Title: Re: Baseline thingy(Solved, thanks to TwinMoon and NicksterG)
Post by: Dualnames on Fri 06/06/2008 23:05:33
Quote from: NiksterG on Fri 06/06/2008 23:04:22
Hey, come on, I was close... ::)

I guess,but there's only one credit slot but whatever..