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.
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?
Develop games in your browser. Powerful, performant & highly capable.
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.
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.
Have you tried scaling the layer with the images only ? and have the gui on a hud layer with 0 scale
Your answer did the trick.
Thank you very much