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
16
S
5
G
6
Posts: 195
Reputation: 3,221

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
402
S
238
G
89
Posts: 24,628
Reputation: 196,023


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 0 guests