Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Sonja on Tue 27/12/2005 07:39:26

Title: Walkable area different for different characters?
Post by: Sonja on Tue 27/12/2005 07:39:26
How do I set walkable areas to be different for different characters? For example, maybe you can switch to a bird character who can fly around in the sky, and then switch to a fish character who can go from screen to screen but only in the river areas.
Title: Re: Walkable area different for different characters?
Post by: Gilbert on Wed 28/12/2005 01:23:33
Simplest way is to just draw two different areas for them, but these areas won't be joint together, so the bird won't "walk" into the water and vice versa for the fish.

Slightly more complicated way, when you need the areas to be joint/overlapping, is to use the RemoveWalkableArea() and RestoreWalkableArea() to set where the character can walk on according to its state.