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 » Scripters
Home Search
 

Re: Gui Questions?

Previous Thread :: Next Thread 
SuperSneakyTony is not online. SuperSneakyTony
Joined: 10 Jul 2011
Total Posts: 4428
27 May 2016 01:46 PM
If I have a frame with the attributes:
Size: 1,0,1,0
Position: 0,0,0,0

and I have another frame inside this frame, what position would I need it to be to be exactly in the middle of the screen? I've tried 2.5 and.5, but they haven't seemed to get it exactly in the middle.
Report Abuse
KarthonTulliusEnnius is not online. KarthonTulliusEnnius
Joined: 30 May 2010
Total Posts: 230
27 May 2016 01:48 PM
Depends on the size of the frame, for exact middle, using the proportions rather than explicit position values, it is (1-size)/2

for instance if you're using size (.5, 0, .5, 0)

then you need position (.25,0,.25,0)


If your size was .9 then positions .05 and so on.
Report Abuse
SuperSneakyTony is not online. SuperSneakyTony
Joined: 10 Jul 2011
Total Posts: 4428
27 May 2016 01:54 PM
Yea that's what I did!

frame is 1,0,1,0

and frame inside of it was .25,0,.25,0 and .5 but that didn't make it go in middle.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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