Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Bavolis on Fri 18/05/2012 21:24:26

Title: Overlapping Walkable Areas
Post by: Bavolis on Fri 18/05/2012 21:24:26
My searching through the forums came up with some answers on how to solve this technically, and I have some ideas, but my problem at even starting is a bit more basic. I'm trying to get a "bridge" type walkable area to pass over an underpass. Here's the sketch example:

(http://bloodlustsoftware.com/paths.jpg)

The problem I have is when I create the "top" walkable area and then draw (in a different ID of course) the "bottom" walkable area - it seems to eat a gap out of the top one. Is there a way to have two paths drawn that don't eat each other where they cross?
Title: Re: Overlapping Walkable Areas
Post by: Khris on Fri 18/05/2012 21:52:45
No, the walkable areas are stored using a simple 2D bitmap. Thus, one pixel can't belong to two different areas.

The usual workaround is to use a combination of areas and regions, to track the movement and turn walkable areas on/off.
There's no straightforward way to solve this, faking 3D with 2D tools is always complicated.
Title: Re: Overlapping Walkable Areas
Post by: Bavolis on Sat 19/05/2012 01:04:34
Ok, I'll try that workaround. Thanks!