Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: HandsFree on Mon 01/08/2011 17:51:48

Title: Using different scaling levels in the same area [solved]
Post by: HandsFree on Mon 01/08/2011 17:51:48
Hi,

I set the MaxScalingLevel and MinScalinLevel properties of a walkable area to suit the playable character.
Later in the game I used a different view but that character sprite is bigger, so I want to adjust the scaling levels for that area in a later part of the game.

I couldn't find a way to set the levels in the script, so I've drawn a second walkable area over the first one with different settings. Then I used  RemoveWalkableArea(1); RestoreWalkableArea(2); where needed.
But apparently the first walkable area gets erased when you draw another oner over it (tried it a few times because I thought I erased it by mistake).

Is there a way to do this?
thanks
Title: Re: Using different scaling levels in the same area
Post by: Khris on Mon 01/08/2011 18:13:20
Each set of areas is stored as a single bitmap i.e. they can't overlap.

You're looking for: http://www.adventuregamestudio.co.uk/manual/SetAreaScaling.htm
Title: Re: Using different scaling levels in the same area
Post by: HandsFree on Mon 01/08/2011 21:05:05
Yes that's it.
I searched for MinScalingLevel but nothing showed up.

thanks.
Title: Re: Using different scaling levels in the same area [solved]
Post by: monkey0506 on Tue 02/08/2011 00:50:19
If you ever did need overlapping areas, you could treat it like you would a Venn diagram, where each of the non-overlapping areas would have their own unique walkable area, and the overlapping areas would share a third area (or more depending how complex you need it to be!).