Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: JD on Sun 29/08/2010 16:49:39

Title: Character Scaling question
Post by: JD on Sun 29/08/2010 16:49:39
Greetings!

I have a question regarding scaling a character. I have set the .ManualScaling bool for the character to true, but when I try to rescale it using .Scaling to like 300% it gives an error: "Character.Scaling: scaling must be between  5 and 200%". Is this an intended limitation? Same for SetAreaScaling. The weird bit is that if I set an area's scaling to let's say '70-700' in the editor it works fine.

Thanks in advance,

-Def
Title: Re: Character Scaling question
Post by: monkey0506 on Sun 29/08/2010 17:53:10
Quote from: Manual > Contents > Tutorial > Advanced room features > Character scaling (http://www.adventuregamestudio.co.uk/manual/Character%20scaling.htm)However, you can adjust it using the "Walkable Areas" mode to anywhere from 10% (one-tenth size) to 200% (double size).

Quote from: Manual > Contents > Scripting > Character functions and properties > Scaling property (character) (http://www.adventuregamestudio.co.uk/manual/Character.Scaling.htm)This property can always be read, and returns the character's current zoom level, which will be between 5 and 200 (the default being 100 if they are not currently scaled).

Quote from: Manual > Contents > Scripting > Room functions > SetAreaScaling (http://www.adventuregamestudio.co.uk/manual/SetAreaScaling.htm)MIN and MAX have ranges from 5 to 200, the same as in the editor. Pass 100 for both values to revert to the normal zoom level (100%) for that area.

There seems to be some misinformation in the tutorial based on the other two pages. If setting a higher value in the editor appears to work then that is unsupported, not by design, but actually a bug. Granted it might be beneficial, but it's allowing functionality that should be directly disallowed, so it's still a bug.

As far as scaling 700%, don't let Ben304 see you talking about that..his tears would flood the earth. :=
Title: Re: Character Scaling question
Post by: JD on Sun 29/08/2010 18:03:24
The 700% was just an example. Though I do use 500%  :-[ You seem to be correct though.