Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Pixelton on Thu 15/04/2010 14:10:06

Title: Walk-behind problems
Post by: Pixelton on Thu 15/04/2010 14:10:06
I know this is probably nothing and simple to resolve but I'm having a few  issues with some walkbehind areas.

in a few instances the player needs to walk underneath something and it just isnt working so I'm curious what I;m doing wrong here. Heres a screengrab to emphasis the problem.

(http://www.blacktreeuk.net/johnny_r/walk_behind.JPG)

Any help is appreciated
Title: Re: Walk-behind problems
Post by: RickJ on Thu 15/04/2010 14:24:48
You could use an object.  Just set the baseline at a point on the floor of the background image that is directly under the object the character is to walk under.
[edit]
I guess this would work  for walk-behind areas
Title: Re: Walk-behind problems
Post by: Pixelton on Thu 15/04/2010 14:55:44
ah right...so you cant really use a walk-behind in that way basically...its ok, I've fixed this with a small amount of character scale.
Title: Re: Walk-behind problems
Post by: Matti on Thu 15/04/2010 15:10:46
You can use a walk-behind like you already did, but (as RickJ pointed out) you have to set the baseline to a point somewhere on the floor, since the character's baseline has to be above the walkbehind's baseline to get the result you're looking for.
Title: Re: Walk-behind problems
Post by: Khris on Thu 15/04/2010 15:14:06
Mark:

Yes, of course this will work for a walkbehind, too.
Just put the baseline on the floor, right under the door.

That's exactly why a baseline is available to set in the first place; to add a concept of height, or rather a z-coordinate, to walkbehinds.
    wall      |  ######  |
             >|--######--|<-- baseline
--------------'  ######  '-----
                 ######       
###############################
##### walkablke area ##########
###############################

Around here, probably best at the lowest point of the narrow part of the walkable area.
Title: Re: Walk-behind problems
Post by: Pixelton on Thu 15/04/2010 19:11:01
ah cheers guys...now I've sorted that I feel kind of stupid :p