Problem with walkable area's (SOLVED)

Started by Hans, Sun 07/01/2007 12:53:52

Previous topic - Next topic

Hans

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?

Ashen

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).
I know what you're thinking ... Don't think that.

Hans

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?

Ashen

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.
I know what you're thinking ... Don't think that.

Hans

Thanks. I think that this could help a lot of people with my problem a little further. Thanks again.
**--__--**(TOPIC SOLVED)**--__--**

SMF spam blocked by CleanTalk