Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Hans on Sun 07/01/2007 12:53:52

Title: Problem with walkable area's (SOLVED)
Post by: Hans on Sun 07/01/2007 12:53:52
I have a large character, and he is so big that his "body" come outside the walkable area.
Editing the walkable area (making it smaller) isn't possible, because there also are small characters, that wouldn't be able to walk there anymore if I did so.

What to do now?
Title: Re: Problem with walkable area's
Post by: Ashen on Sun 07/01/2007 13:23:40
What exactly is the problem?
The size of the character shouldn't have anything to do with the walkable area . All that needs to be in the Walkable area is the 'feet' of the character - in fact, I think it's only a single point, the one returned as the character's coordinates. In theory, a walkable area 3 pixels wide should work as well for large or small characters (below 3 makes the pathfinding go a little weird).
Title: Re: Problem with walkable area's
Post by: Hans on Sun 07/01/2007 14:34:24
That's exacty what I mean! It looks really stupid to see a big ogre for example stand in the wall, because his feet are coming outside the walkable area. Is there a way to tell AGS how wide the character is?
Title: Re: Problem with walkable area's
Post by: Ashen on Sun 07/01/2007 15:01:36
Ah, OK I see what you mean now. Sorry about that - I was only thinking height, not width ...

Sadly, I don't think there's an easy way to do this. You could try adding 'borders' to the walkable areas (usng regions or a second Walkable area), that would cover the part the smaller characters can walk on but the Orge can't, and somehow use script to stop the Orge character from walking on them. There was a thread a while back about something similar (I think it was about a dog chained to a post and only able to move around a limited area, but still letting the player move freely), but the closest I can find ATM is this thread (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=17610.0).
Title: Re: Problem with walkable area's
Post by: Hans on Sun 07/01/2007 15:19:49
Thanks. I think that this could help a lot of people with my problem a little further. Thanks again.
**--__--**(TOPIC SOLVED)**--__--**