Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Nickydude on Wed 24/12/2008 02:36:32

Title: Baseline needed to follow curves.
Post by: Nickydude on Wed 24/12/2008 02:36:32
I have a bit of a problem with the walkable baseline. Take a look at this image

(http://www.madladdesigns.co.uk/temp/baselineprob01.png)

When the player enters the door he goes behind like he should...

(http://www.madladdesigns.co.uk/temp/baselineprob02.png)

but when he gets near the outside of the wall, he disappears (because of where the baseline is set)...

(http://www.madladdesigns.co.uk/temp/baselineprob03.png)

How would I get around this problem?

Thanks. :)
Title: Re: Baseline needed to follow curves.
Post by: Khris on Wed 24/12/2008 03:48:10
Either use two walkable areas or add a region and use that to determine whether he's inside the building or not.

Regardless, inside the room's repeatedly_execute, set the walkbehind's baseline to 1 (player isn't behind it) or the actual Y-coord.