|
| 19 Aug 2015 10:09 AM |
| I know how to center a regular ScreenGui using offsets, but the BillBoardGui has all these weird offsets with which I know nothing of what to do. Can someone tell me how to center a BillBoardGui (relative to the part it is in of course)? |
|
|
| Report Abuse |
|
|
|
| 19 Aug 2015 10:11 AM |
Well not necessarily the actual GUI itself, but the parts inside it
|
|
|
| Report Abuse |
|
|
| |
|
|
| 19 Aug 2015 07:20 PM |
| I make a billboardgui in invisible part, no matter about offset |
|
|
| Report Abuse |
|
|
Scottifly
|
  |
| Joined: 30 Jan 2011 |
| Total Posts: 9180 |
|
|
| 20 Aug 2015 01:53 AM |
Did you try reading the UDim2 section of this:
http://wiki.roblox.com/index.php?title=Beginner%27s_GUI_Tutorial |
|
|
| Report Abuse |
|
|
|
| 22 Aug 2015 05:03 PM |
Okay so I got the BillBoardGui to work and I set the UDim2 on its elements. But in order to keep the BillBoardGui size constant, I need to use offset instead of scale. How do I center offset?
I know you can do Size = {0.5,0},{0.5,0} and then Position = {0.25,0},{0.25, 0} but what if my size was {0.75,0},{0.75,0}. How would I center that?
Hehe, I like math but sometimes I don't know how to do it ._. |
|
|
| Report Abuse |
|
|
| |
|
Scottifly
|
  |
| Joined: 30 Jan 2011 |
| Total Posts: 9180 |
|
| |
|
Scottifly
|
  |
| Joined: 30 Jan 2011 |
| Total Posts: 9180 |
|
|
| 23 Aug 2015 02:27 AM |
| (divided by 2) gives you a centered position. |
|
|
| Report Abuse |
|
|
|
| 23 Aug 2015 10:23 AM |
| Mhm, logically that was what I considered first. However, when I tried using that method, it didn't center it, only a little part of the GUI was on the other left side. I set it to 0.125 (cause why not, it seems like a mathematically logical number) and it seems to be centered, yet I don't know how to duplicate this result. ._. |
|
|
| Report Abuse |
|
|
|
| 23 Aug 2015 10:41 AM |
| Well I had a GUI with an offset size of 0.25 and I set the position to 0.375 (which is 0.75/2 NOT 0.25/2) and it centered itself. The 0.75 GUI had to be set to 0.125 (which is half of 0.25 NOT 0.75). How peculiar? |
|
|
| Report Abuse |
|
|
|
| 23 Aug 2015 10:44 AM |
http://prntscr[DOT]com/87yobn http://prntscr[DOT]com/87yohp
Like this? |
|
|
| Report Abuse |
|
|
|
| 23 Aug 2015 10:54 AM |
@DevelopmentStatus That seems to work. Are you saying that I need to set the BillBoardGui size to the brick size?
|
|
|
| Report Abuse |
|
|
|
| 26 Aug 2015 01:23 PM |
Nvm, I figured out the formula :3.
|
|
|
| Report Abuse |
|
|