Scaling Layout

Get help using Construct 2

Post » Sun Apr 26, 2015 1:21 pm

Need to zoom into a layout and having problems linking the background image (rabbit) position to the foreground image position (glasses)
I've tried the scale option on the rabbit and glasses but the alignment is all wrong.

Image

Tried scaling the entire layout with "set layout scale to 1.5" which kind of works but plays havoc with the GUI and I'm not sure how reliable x-y coordinates become when scaling layout.

Anyone know a way around this?
B
9
S
3
Posts: 146
Reputation: 1,150

Post » Sun Apr 26, 2015 6:35 pm

To fix the alignment, I would have the glasses origin point in the center of the image, and a origin point on the rabbits nose where the glasses should be.

After scaling the images simply move the glasses object (set position) to the rabbit object placing it on the origin point of the nose.
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,572

Post » Sun Apr 26, 2015 8:47 pm

Thanks for your reply, the same thoughts had crossed my mind.
Unfortunately, the rabbit is only an example image and the user may add their own image of which I will have no control.
B
9
S
3
Posts: 146
Reputation: 1,150

Post » Sun Apr 26, 2015 8:56 pm

Have you tried scaling the layer with the images only ? and have the gui on a hud layer with 0 scale
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,572

Post » Fri May 01, 2015 1:27 am

Your answer did the trick.

Thank you very much
B
9
S
3
Posts: 146
Reputation: 1,150


Return to How do I....?

Who is online

Users browsing this forum: Euduardo, Kin, mikehive, ratboy3, tinhofiel and 38 guests