Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Ix-Star on Sat 25/03/2023 12:01:16

Title: Character scaling while moving
Post by: Ix-Star on Sat 25/03/2023 12:01:16
Hi, i'm new to AGS and i wanted to know how to make a character scale lower or bigger while moving, like if character is in x, y posittion scale 50

I would be thankfull
Title: Re: Character scaling while moving
Post by: Matti on Sat 25/03/2023 12:10:45
If you select a walkeable area in the editor, you can edit the character scaling in the properties panel. If you set ContinuousScaling to true you can edit the min/max scaling of characters.

You can also do this via coding using character.Scaling.
Title: Re: Character scaling while moving
Post by: Snarky on Sat 25/03/2023 12:11:25
Welcome!

The usual solution is to set continuous scaling on the walkable area in that part of the room. If you set a max-scale and a min-scale, the maximum scale will be used at the bottom of the walkable area, the minimum scale at the top, and it will gradually scale in between.

I also recommend that you check out the tutorial in the manual that is included with AGS, and also available online. It explains scaling here (https://adventuregamestudio.github.io/ags-manual/AdvancedRoomFeatures.html#character-scaling), and answers a lot of other questions you'll probably have as a newcomer.

If you want a more advanced effect (like gradually scaling if you move horizontally), you will have to script it.