Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: stepsoversnails on Mon 21/03/2011 02:03:21

Title: checking for walkable areas
Post by: stepsoversnails on Mon 21/03/2011 02:03:21
I can't figure out a script that simply checks if there is a certain amount of walkable area in front of a character.
i'd really love some help, thanks!  ;D
Title: Re: checking for walkable areas
Post by: Gilbert on Mon 21/03/2011 02:17:06
I don't quite get your question, what do you mean by walkable area in front of a certain character?
Are you referring to walk-behinds instead?
Title: Re: checking for walkable areas
Post by: stepsoversnails on Mon 21/03/2011 02:24:33
it's okay i got it.
aha.
sorry for that.

if (GetWalkableAreaAt(cEgo.x - 30, cEgo.y - 0) == 0){
   Display ("There's not enough room.");
}
else {