How do I Resize Several Objects Together?

Get help using Construct 2

Post » Sat Jan 17, 2015 5:28 am

@Android-Music
The capx in this post may help.
how-do-i-span-class-posthilit-rotate-span-sprite-then-set-new-bound_p839746?#p839746

Otherwise here's the math to scale any object around a point (centerx, centery). Just do it for all the objects you want to scale around that point.

set x to (self.x-centerx)*scale + centerx
set y to (self.y-centery)*scale + centery
Set width to self.width*scale
Set height to self.height*scale
B
92
S
32
G
109
Posts: 5,291
Reputation: 70,993

Post » Sat Jan 17, 2015 6:09 am

@Colludium and @Lordshiva1948 if you try his suggestion
Try selecting several objects in editor, hit "Enter" and then resize them, you'll understand what am I talking about.

you will understand right away :) Hitting Enter is the same as choosing 'wrap' in the editor. Actually I learnt something because resizing a group of sprites in the editor with and without them being wrapped gives different and useful results I hadn't realised :)
B
24
S
9
G
4
Posts: 1,646
Reputation: 6,596

Post » Sat Jan 17, 2015 1:17 pm

@codah - aha! Every day continues to be a school-day, it seems. :)
A big fan of JavaScript.
B
74
S
20
G
71
Posts: 2,228
Reputation: 44,888

Post » Tue Jan 20, 2015 8:37 am

@R0J0hound Like always, can't stop believing you are magician! Thanks a lot!
B
80
S
23
G
6
Posts: 240
Reputation: 7,761

Post » Tue Jan 20, 2015 9:18 am

@R0J0hound whoops, seems like I've got something wrong(as usual) https://dl.dropboxusercontent.com/u/130 ... scale.capx
B
80
S
23
G
6
Posts: 240
Reputation: 7,761

Previous

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 34 guests