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 » Scripting Helpers
Home Search
 

Re: UDim2 Positioning?

Previous Thread :: Next Thread 
Stiki500 is not online. Stiki500
Joined: 13 Nov 2008
Total Posts: 1193
26 Sep 2009 02:40 PM
I understand the offset property, however. When I try setting the scale of the position to 0.5, on the X and Y axis and the size's scale to 1 and 1. It doens't show up at all, can anyone help explain?
Report Abuse
ElectricAxel is not online. ElectricAxel
Joined: 15 May 2009
Total Posts: 16239
26 Sep 2009 02:43 PM
if the Size's Scale is 1 and 1, then you must put the Position to 0 and 0, the position is where the top left corner is, and the 00 is the top left corner of the screen
Report Abuse
Stiki500 is not online. Stiki500
Joined: 13 Nov 2008
Total Posts: 1193
26 Sep 2009 02:45 PM
But it still doesn't show up, I can see the text but not the entire box.
Report Abuse
Stiki500 is not online. Stiki500
Joined: 13 Nov 2008
Total Posts: 1193
26 Sep 2009 02:49 PM
And no matter what I set the scale to, it doesn't change anything, it only works with Offset for me...
Report Abuse
ElectricAxel is not online. ElectricAxel
Joined: 15 May 2009
Total Posts: 16239
26 Sep 2009 02:55 PM
.Size = UDim2.new(1, 0, 1, 0)
.Position = UDim2.new(0, 0, 0, 0)




try it (put whatever u need to change before the .s)
Report Abuse
Stiki500 is not online. Stiki500
Joined: 13 Nov 2008
Total Posts: 1193
26 Sep 2009 02:58 PM
Thats what I have done, it just shows up in the corner. I really don't know what is wrong with my computer.
Report Abuse
nightname is not online. nightname
Joined: 10 Jun 2008
Total Posts: 8960
26 Sep 2009 03:00 PM
Ok let me explain.
Gui positon always starts at Top Right.
If you put the position of 1 it will look like it disappear but in real life its there but only the right side is showing. It hard to see the line because its too small (border line).

You'll see what i mean when you put. 0.8 then make it 0.9
Report Abuse
blocco is not online. blocco
Joined: 14 Aug 2008
Total Posts: 29474
26 Sep 2009 03:01 PM
no.... it starts top left
Report Abuse
Stiki500 is not online. Stiki500
Joined: 13 Nov 2008
Total Posts: 1193
26 Sep 2009 03:06 PM
Now let me explain. It doen't actually work in my Roblox Studio, I am a decent enough scripter/ programmer to know what you are talking about but the scale option has no effect on the button's position / size!
Report Abuse
nightname is not online. nightname
Joined: 10 Jun 2008
Total Posts: 8960
26 Sep 2009 03:07 PM
@blocco

Sorry typo,

I should get a rest soon. My head is aching.
Report Abuse
ElectricAxel is not online. ElectricAxel
Joined: 15 May 2009
Total Posts: 16239
26 Sep 2009 03:08 PM
did you even try test mode??? ...
Report Abuse
Stiki500 is not online. Stiki500
Joined: 13 Nov 2008
Total Posts: 1193
26 Sep 2009 03:09 PM
Yes...
Report Abuse
ElectricAxel is not online. ElectricAxel
Joined: 15 May 2009
Total Posts: 16239
26 Sep 2009 03:12 PM
good news, i'm finally able to open roblox studio, so i'll test it in my place (finally)
Report Abuse
Stiki500 is not online. Stiki500
Joined: 13 Nov 2008
Total Posts: 1193
26 Sep 2009 03:13 PM
How perculiar, it doesn't work while in a frame. But it does outside a frame.
Report Abuse
ElectricAxel is not online. ElectricAxel
Joined: 15 May 2009
Total Posts: 16239
26 Sep 2009 03:28 PM
after a little testing (Elol (E is for Evil)) i came to the conclusion that its the way i said, and to have it aligned so it fitx perfectly in the lower right corner, use this

beh = script.Parent--maybe?

beh.Size = UDim2.new(0, 0, 0, 0)--change
beh.Position = UDim2.new(1-beh.Size.Y.Scale, 0-beh.Size.Y.Offset, beh.Size.X.Scale, beh.Size.X.Offset)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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