Baseline thingy(Solved, thanks to TwinMoon and NicksterG)

Started by Dualnames, Fri 06/06/2008 22:01:42

Previous topic - Next topic

Dualnames

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?
Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)

TwinMoon

The other way round: character.Baseline = 200;  (presuming you use 320x200)

Dualnames

Doesn;t work...still behind an object reso is 640x480
Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)

NiksterG

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.
Check out my games! (Not all made with AGS)

TwinMoon

If you use
Code: ags

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.

Dualnames

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.
Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)

NiksterG

Check out my games! (Not all made with AGS)

Dualnames

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..
Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)

SMF spam blocked by CleanTalk