Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

GUI positioning question...?

Asked by
nicros 165
8 years ago

So im a noob so sorry if this is a noob question....

but im making GUI buttons and the positioning is based off the top left corner....so if i wanted my button to be on the bottom left corner i have to set it like 800 pixels from the top and it doesnt work out (if that makes sense)......so my question is...how do i make it where the 0,0 is in the bottom left or bottom right corner? so i can set the positioning to be 150 pixels from the bottom. hope this is said well :p

2 answers

Log in to vote
0
Answered by 8 years ago

You can not change the proportions of offset, it is done in pixels, but if you used scale, you can do 0.4 or 0.5 and it be the middle of the screen no matter what size the monitor, so in your case you could do {0.95,0},{0.95, 0} and it would be in the top left corner. This wasn't what you wanted, but if it helped please accept!

1
hehe this helped a lot more than you would think....i was able to do {1,-160}{1,-100} and put it right where i wanted....wasnt using the 1's cuz i didnt know what they did :P nicros 165 — 8y
0
glad I could help! yogipanda123 120 — 8y
Ad
Log in to vote
0
Answered by
1waffle1 2908 Trusted Badge of Merit Moderation Voter Community Moderator
8 years ago

UDim2.new(0,0,0,0) is the top left. If you want something 150 pixels up from the bottom left, use UDim2.new(0,0,1,-150)

Answer this question