Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: bx83 on Tue 18/12/2018 02:34:36

Title: How do you get cCharacter.Scaling on a walkable area with continuous scaling?
Post by: bx83 on Tue 18/12/2018 02:34:36
I'm trying to find out the scaling level of my main character on a particular point of a scaling walkable area.
I've tried:
Display("scaling",cJulius.Scaling);
...but nothing comines out - I just get a window saying "scaling "

Is there a way to get this done?
Checked tha manual - it say's Scaling is a function to get/set the property.
Title: Re: How do you get cCharacter.Scaling on a walkable area with continuous scaling?
Post by: Gilbert on Tue 18/12/2018 03:47:32
Code (ags) Select
Display("%d",cJulius.Scaling);
Check the string formating section of the manual for more examples.
Title: Re: How do you get cCharacter.Scaling on a walkable area with continuous scaling?
Post by: Khris on Tue 18/12/2018 18:37:34
To insert the value into text, you can use

Code (ags) Select
  Display("scaling: %d", cJulius.Scaling);
Title: Re: How do you get cCharacter.Scaling on a walkable area with continuous scaling?
Post by: bx83 on Tue 18/12/2018 18:52:43
God I feel like a moron :/
Thankyou :)