PlayMaker Help & Tips > PlayMaker Help
Aligning smaller gui horizontally with screen ratio
(1/1)
autumnboy:
Hi!
I've set up my big gui to be centered via:
-Position: Y screen resolution/2 - (texture width/2)
-Scale: Y screen resolution/1080 x Texture width & Texture height
I have smaller gui that sits behind it/in it.
-Position: X screen resolution/2.6 - (texture width/2)
-Scale: Y screen resolution/1080 x Texture width & Texture height
But When the screen is in a different resolution the smaller gui is always off.
I know I'm missing something but I don't know what to fix the smaller gui's position against the y screen resolution and scaling the big gui.
Help would be awesome please. :)
jeanfabre:
Hi,
what is 1080? if it's your screen size, then instead, you must get the current size ( or at least get it on start so that it's always the right value.
Bye,
Jean
Navigation
[0] Message Index
Go to full version