generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Game Design
Home Search
 

Re: Centering a BillBoardGui?

Previous Thread :: Next Thread 
awsomecoolhacker is not online. awsomecoolhacker
Joined: 13 Jun 2010
Total Posts: 158
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
awsomecoolhacker is not online. awsomecoolhacker
Joined: 13 Jun 2010
Total Posts: 158
19 Aug 2015 10:11 AM
Well not necessarily the actual GUI itself, but the parts inside it
Report Abuse
awsomecoolhacker is not online. awsomecoolhacker
Joined: 13 Jun 2010
Total Posts: 158
19 Aug 2015 06:40 PM
bump ._.
Report Abuse
ORZpasserAtw is not online. ORZpasserAtw
Joined: 20 Feb 2011
Total Posts: 2365
19 Aug 2015 07:20 PM
I make a billboardgui in invisible part, no matter about offset
Report Abuse
Scottifly is not online. 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
awsomecoolhacker is not online. awsomecoolhacker
Joined: 13 Jun 2010
Total Posts: 158
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
awsomecoolhacker is not online. awsomecoolhacker
Joined: 13 Jun 2010
Total Posts: 158
22 Aug 2015 09:19 PM
Bump :3
Report Abuse
Scottifly is not online. Scottifly
Joined: 30 Jan 2011
Total Posts: 9180
23 Aug 2015 02:25 AM
.75 divided by 2 = .375

Report Abuse
Scottifly is not online. Scottifly
Joined: 30 Jan 2011
Total Posts: 9180
23 Aug 2015 02:27 AM
(divided by 2) gives you a centered position.
Report Abuse
awsomecoolhacker is not online. awsomecoolhacker
Joined: 13 Jun 2010
Total Posts: 158
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
awsomecoolhacker is not online. awsomecoolhacker
Joined: 13 Jun 2010
Total Posts: 158
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
DevelopmentStatus is not online. DevelopmentStatus
Joined: 22 Apr 2015
Total Posts: 235
23 Aug 2015 10:44 AM
http://prntscr[DOT]com/87yobn
http://prntscr[DOT]com/87yohp

Like this?
Report Abuse
awsomecoolhacker is not online. awsomecoolhacker
Joined: 13 Jun 2010
Total Posts: 158
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
awsomecoolhacker is not online. awsomecoolhacker
Joined: 13 Jun 2010
Total Posts: 158
26 Aug 2015 01:23 PM
Nvm, I figured out the formula :3.

Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image