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
9
S
4
G
5
Posts: 158
Reputation: 2,370

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
367
S
217
G
82
Posts: 23,262
Reputation: 183,689


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 1 guest