uniform scaling

For questions about using Classic.

Post » Tue Jan 15, 2008 12:00 am

can anyone help me with getting a non-square object scaling uniformly?

MMF allowed a scaling based on percentage to allow this, could anyone supply info or examples to achieve this in construct??

thankyou, as always.
B
4
S
2
G
5
Posts: 149
Reputation: 2,025

Post » Tue Jan 15, 2008 11:57 am

Yeah, you can just use an expression to do a proportional zoom. For example, always set the width and height to:
Sprite.OriginalWidth * factor
Sprite.OriginalHeight * factor

If you use 0.5 (which is the same as 50%) for factor, it's scaled to half size. 2 represents 200% and double size, etc.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 6 guests