How do I select& scale/rotate in a certain way?

Get help using Construct 2

Post » Wed Sep 17, 2014 9:57 am

Hi... actualy I have 2 questions...
1.) I have many objects quite close together...and If I like to select a small one, it selects always the bigger one...or the one in higher z-order. Even if I go to click on OBJECT panel on it, and I like to move it, it go to be deselected, selecting again the bigger...can I somehow freeze a selection to move a object ...did U understand what I mean...or maybe "hide" objects for a moment...

2.) How can I scale/rotate more sprites like one big sprite...for example,,..if I made a bridge from many lines...and I like to rotate a selection of 10 lines...each single will be rotated...but I like to rotate it like a entire long line...

thankssss :)
B
38
S
16
G
2
Posts: 451
Reputation: 4,898

Post » Wed Sep 17, 2014 7:33 pm

For 1 you can zoom in to help or move objects to a locked layer.

For 2 select all the objects you want, right click and select "Wrap Selection".
B
94
S
33
G
118
Posts: 5,392
Reputation: 75,845

Post » Wed Sep 17, 2014 8:29 pm

Thnaks :) I will try to do it like that :)
B
38
S
16
G
2
Posts: 451
Reputation: 4,898

Post » Wed Sep 17, 2014 9:08 pm

@R0J0hound Do you know any way of emulating the functionality of "wrap selection" during runtime? I had a physics game I stopped worked on because I couldn't figure out how to scale the compound object like "wrap selection".

Thanks!
B
56
S
16
G
7
Posts: 148
Reputation: 7,202

Post » Thu Sep 18, 2014 5:22 pm

@basspenguin
If you have a center (centerX, centerY) and scale factor you could do it like this:

x = (object.x - centerX)*scale + centerX
y = (object.y - centery)*scale + centerY
width = self.width*scale
height= self.height*scale
B
94
S
33
G
118
Posts: 5,392
Reputation: 75,845

Post » Sat Sep 20, 2014 5:23 pm

Nice! So I could use the midpoint of all object centers as the centerX and centerY? Thanks!!!
B
56
S
16
G
7
Posts: 148
Reputation: 7,202

Post » Sat Sep 20, 2014 5:39 pm

Yes, that would work.
B
94
S
33
G
118
Posts: 5,392
Reputation: 75,845


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 7 guests