Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Ovod on Thu 30/12/2004 20:01:13

Title: Areas Intersection [SOLVED]
Post by: Ovod on Thu 30/12/2004 20:01:13
Hello, is it possible to create functional intersected areas, near like this?
So, that a character may walks under and on?

(http://neodrop.nm.ru/Renescense.jpg)

Thank You.
Title: Re: Areas Intersection
Post by: strazer on Fri 31/12/2004 11:49:06
Yes, it's possible, although it requires a bit of fiddling.

AGS doesn't support overlapping walkable areas natively, so you will have to use workarounds, turning on/off walkable areas on-the-fly.

Check out this template by Scorpiorus, for example:
http://www.geocities.com/scorpiorus82/stairs10.zip (right click/save as)
Title: Re: Areas Intersection
Post by: Pod on Fri 31/12/2004 14:34:02
Will CJ think about implementing this? Even AGI has this :O
Title: Re: Areas Intersection
Post by: Radiant on Fri 31/12/2004 17:26:48
AGI doesn't have areas at all, only trigger lines. What you perceive as areas in for instance KQ3 (the wizard's hallway comes to mind, and the pier) is in fact a clever manipulation of walkable/nonwalkable, and trigger lines. This is very much possible in AGS.

CJ has stated in the past that, due to the way regions are implemented, it is not feasible to implement region overlaps.
Title: Re: Areas Intersection
Post by: Pod on Sat 01/01/2005 15:28:40
ahaaaaa. Makes sense.


How did it work in SCI?

Why dosn't he implement something like this :

http://www.amberfisharts.com/files/featured/featuredpic.png
Title: Re: Areas Intersection
Post by: Ovod on Sat 01/01/2005 16:59:52
Strazer,
thank You very much, man
Title: Re: Areas Intersection
Post by: Radiant on Sat 01/01/2005 17:29:49
Quote from: Pod on Sat 01/01/2005 15:28:40
How did it work in SCI?
IIRC similar to AGI.

Quote
Why dosn't he implement something like this :
http://www.amberfisharts.com/files/featured/featuredpic.png
Er, because that doesn't allow for intersecting areas either? Also I'm not sure if I see the point of setting height to an area.
Title: Re: Areas Intersection
Post by: Snarky on Sat 01/01/2005 17:50:55
I betcha that does allow intersecting walkable areas. Just draw them on top of each other. You see that each area is a polygon (a triangle, to be exact), and two areas are connected if they share a side. If you draw two areas that cover the same space, but don't share a side, you'll have overlapping, distinct walkable areas.

I don't think the areas genuinely have height. I think the editor just projects the "groundplan" up by a certain height, scaled by the same amount as the object scaling. That way, people working on it can get a better sense of the space they're defining, and set the scaling appropriately.

Of course, it's possible that the areas genuinely have height, and the engine is in fact projecting objects in 3D space onto the background. That would be kind of cool, and allow for easily extending it to 3D characters (as has often been discussed for AGS).