|
| 02 Mar 2015 06:07 PM |
So I'm looking to create a complex GUI in Roblox and I'm wondering how the programmer who make the games such as "whatever floats your boat" make their smooth transitions. I'd like to know hoe they get their selector bar to slide across from button to button smoothly is there a moveto option or built in function I should be looking for.
if you've played whatever floats your boat then you'll understand what im talking about:
http://www.roblox.com/Whatever-Floats-your-Boat-place?id=156220906
the main menu has it at the top where there is a selector bar and it slides from button to button in a floating fashion.
can someone please get back to me on how they achieve this. |
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
| |
|
|
| 02 Mar 2015 06:09 PM |
TweenSizeAndPosition TweenSize TweenPosition
|
|
|
| Report Abuse |
|
|
|
| 02 Mar 2015 06:19 PM |
| Thank you so much this helped alot:) |
|
|
| Report Abuse |
|
|
|
| 02 Mar 2015 06:28 PM |
This script Works but I can't figure out why its so unresponsive I've played around with it but sometimes when I go over certain buttons it doesn't follow the first function When the MouseEnters
----------------------------------------------------
MovingSelector = script.Parent.Parent.MovingSelector
script.Parent.MouseEnter:connect(function() MovingSelector:TweenPosition(script.Parent.Position+UDim2.new(0,0,0.9,0),Enum.EasingDirection.InOut) end)
script.Parent.MouseLeave:connect(function() print("left") end)
---------------------------------------------------
Any help would be appreciated |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 02 Mar 2015 07:16 PM |
| Search up Crazyman32's Tweening Script. It's pretty useful. |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
| |
|
|
| 02 Mar 2015 07:59 PM |
Wait you just want something to move when the mouse enters?
why not do something like
script.Parent.MouseEnter:connect(function() script.Parent.Position = POSITION end)
I personally like when you have a mouse enter a button and it goes farther out if that makes sense so like I love doing this with my gui buttons.
script.Parent.MouseEnter:connect(function() script.Parent.Size = script.Parent.Size + UDim2.new(0.03,0,0,0) end)
script.Parent.MouseLeave:connect(function() script.Parent.Size = script.Parent.Size - UDim2.new(0.03,0,0,0) end) |
|
|
| Report Abuse |
|
|
| |
|