Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: xenogia on Wed 17/09/2003 04:42:57

Title: Hiding behind an object
Post by: xenogia on Wed 17/09/2003 04:42:57
Is there anyway of making a character hide behind an object?  I tried setting the baseline off the object, but the character still is in front of the object.
Title: Re:Hiding behind an object
Post by: Gilbert on Wed 17/09/2003 04:45:48
Set the baseline of the object lower, didn't it work?
Title: Re:Hiding behind an object
Post by: xenogia on Wed 17/09/2003 05:06:00
I had to set it fairly for it to work...hmmm...thanks for the advice :)
Title: Re:Hiding behind an object
Post by: on Thu 18/09/2003 19:00:43
i found it more comfortable to create a "walk behind". they need a baseline too, but can often be drawn as if they would merge somewhere in the foreground. You can put the base line to the lower edge of your screen, and that's right below the gui in most games so that the character can never "miss the line"

have a look at the secret laboratory in day of the tentacle to see EXACTLY what i'm talking about...

works best with pillars, doors, statues etc, if your "object" is to be a box or something that must be moved, it wouldn't work of course.

Title: Re:Hiding behind an object
Post by: Isegrim on Thu 18/09/2003 19:15:05
Just a small, stupid question:
how much higher are your sprites than your character?

I think that it is the bottom of the sprite which is checked against the baseline, not the bottom of the actual visible character.
Maybe that's why you have to set the baseline so low.