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: Scale and Offset

Previous Thread :: Next Thread 
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
22 Oct 2012 04:02 PM
Is there anyway to make sure a GuiObject is exactly at the bottom of the screen, WITHOUT scale?

¤ ¤ † K M X D † ¤ ¤
Report Abuse
swimguy777 is not online. swimguy777
Joined: 30 May 2009
Total Posts: 17092
22 Oct 2012 04:03 PM
Yes, but Scale is probably the best way to go.

-[::ƧѡÎḾḠΰῩ::]-[::Maker of stuff and Helper of Scripting::]-
Report Abuse
SourceLeak is not online. SourceLeak
Joined: 10 Jun 2012
Total Posts: 841
22 Oct 2012 04:04 PM
{0, 0}{1, -height of gui}

So no, you have to use a combination.
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
22 Oct 2012 04:04 PM
I HAVE to go with offset in this case, so how would I accomplish it with offset?

¤ ¤ † K M X D † ¤ ¤
Report Abuse
SourceLeak is not online. SourceLeak
Joined: 10 Jun 2012
Total Posts: 841
22 Oct 2012 04:05 PM
See my reply. Use a combination.
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
22 Oct 2012 04:05 PM
Eh, now that I think about it, I guess I could use scale. But I'd have to change every size... Again...

¤ ¤ † K M X D † ¤ ¤
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
22 Oct 2012 04:06 PM
@Source

I know about that. That's why I asked if you could do without it. Oh well.

¤ ¤ † K M X D † ¤ ¤
Report Abuse
swimguy777 is not online. swimguy777
Joined: 30 May 2009
Total Posts: 17092
22 Oct 2012 04:07 PM
Why do you HAVE to use offset?

And it would probably go something like this

derp.Position = UDim2.new(0,0,0,SizeOfScreenY-SizeOfGuiY)

-[::ƧѡÎḾḠΰῩ::]-[::Maker of stuff and Helper of Scripting::]-
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
22 Oct 2012 04:08 PM
But this is relative to everyone that plays the game.

And it just would be a lot easier to have it in Offset, for checking collision, imo. And I ALREADY PUT EVERYTHING IN OFFSET GAHHH. Time to redo everything...

¤ ¤ † K M X D † ¤ ¤
Report Abuse
digpoe is not online. digpoe
Joined: 02 Nov 2008
Total Posts: 9092
22 Oct 2012 04:09 PM
You can get the player's mouse, and then subtract the height of the Gui size from mouse.ViewSizeY

C:

Mouse.ViewSizeY - according to the Wiki is the height of the game window. (Excluding the Title bar, where the Minimise, and Close buttons are)
Report Abuse
swimguy777 is not online. swimguy777
Joined: 30 May 2009
Total Posts: 17092
22 Oct 2012 04:10 PM
Checking for collisions? Place the GUI with scale and use AbsolutePosition for the position of it.

-[::ƧѡÎḾḠΰῩ::]-[::Maker of stuff and Helper of Scripting::]-
Report Abuse
digpoe is not online. digpoe
Joined: 02 Nov 2008
Total Posts: 9092
22 Oct 2012 04:10 PM
Also, Mouse.ViewSizeY is in PIXELS, or Offset for a Gui.
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
22 Oct 2012 04:11 PM
blah

¤ ¤ † K M X D † ¤ ¤
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