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
 

GUI Question

Previous Thread :: Next Thread 
exoSentinel is not online. exoSentinel
Joined: 18 Mar 2012
Total Posts: 2795
31 Dec 2015 03:25 PM
So I have a sniper for a game I am making, and when you zoom ina scope GUI covers the screen.

I got it centered, but I want it to stay round in the center (where the actualy transparent round scope is. Basically, I want the GUI not to stretch based on the window size. Any ideas on how to do this?
Report Abuse
exoSentinel is not online. exoSentinel
Joined: 18 Mar 2012
Total Posts: 2795
31 Dec 2015 03:27 PM
An easier way to state this:

I do not want the GUI to stretch, I want it to crop down based on the screen size.
Report Abuse
TheBenSquare is not online. TheBenSquare
Joined: 13 Dec 2009
Total Posts: 13604
31 Dec 2015 03:29 PM
Use scale.

{Scale,Offset,Scale,Offset}
Report Abuse
lucas200206 is not online. lucas200206
Joined: 06 Dec 2009
Total Posts: 899
31 Dec 2015 03:30 PM
http://wiki.roblox.com/index.php?title=API:Class/ImageLabel/SliceCenter
http://wiki.roblox.com/index.php?title=API:Class/ImageLabel/ScaleType

Sorry for forwarding links to the wiki, but that is pretty much it. Basically, it keeps the "center" portion of the image scaled within it's aspect ratio and everything else is considered to be the border.
Report Abuse
exoSentinel is not online. exoSentinel
Joined: 18 Mar 2012
Total Posts: 2795
31 Dec 2015 03:33 PM
Thanks, I feel kinda stupid bc that pretty simple, but eh.
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