TradeDEV
|
  |
| Joined: 15 Jun 2014 |
| Total Posts: 299 |
|
|
| 20 Jun 2014 01:35 PM |
http://www.roblox.com/Gui-Test-place?id=161617508
Can someone test my Gui, make sure the tabs work(Everything is kinda moved around), also does anyone know where i can learn tweening?
@TradeDEVRBLX |
|
|
| Report Abuse |
|
|
jakej78b
|
  |
| Joined: 09 Mar 2011 |
| Total Posts: 813 |
|
|
| 20 Jun 2014 01:36 PM |
| Tweening seems self-explanatory to me. Just use it and input the position you want it to tween to. |
|
|
| Report Abuse |
|
|
TradeDEV
|
  |
| Joined: 15 Jun 2014 |
| Total Posts: 299 |
|
|
| 20 Jun 2014 01:37 PM |
What is tween though, how do I write it in a script?
@TradeDEVRBLX |
|
|
| Report Abuse |
|
|
|
| 20 Jun 2014 01:40 PM |
You can use the Wiki to find all the Tweening methods available. One is to tween the position. Tween basically means to smoothly move from one place to another.
GUI:TweenPosition(UDim2.new(.5,0,.5,0))
Will tween the GUIs position to .5,0,.5,0 |
|
|
| Report Abuse |
|
|
TradeDEV
|
  |
| Joined: 15 Jun 2014 |
| Total Posts: 299 |
|
|
| 20 Jun 2014 01:41 PM |
So if I click a button my Gui should be out of frame then when button is click it tweens it into frame?
@TradeDEVRBLX |
|
|
| Report Abuse |
|
|
Locard
|
  |
| Joined: 13 Apr 2014 |
| Total Posts: 3516 |
|
|
| 20 Jun 2014 01:42 PM |
frame:TweenPosition(UDim2.new(0,0,0,0),"Out","Sine",0.3) frame:TweenSize(UDim2.new(0,100,0,100),"Out",Sine",0.5)
First argument is the UDim2 value, second is "Out", "In", or "InOut" I think, the third one is the tweening style, the last is the float. |
|
|
| Report Abuse |
|
|
TradeDEV
|
  |
| Joined: 15 Jun 2014 |
| Total Posts: 299 |
|
| |
|
Locard
|
  |
| Joined: 13 Apr 2014 |
| Total Posts: 3516 |
|
|
| 20 Jun 2014 01:43 PM |
| You can do TweenSizeAndPosition as well. |
|
|
| Report Abuse |
|
|
TradeDEV
|
  |
| Joined: 15 Jun 2014 |
| Total Posts: 299 |
|
|
| 20 Jun 2014 01:44 PM |
That makes it easier, just tween the size up and away from button making it look like I opened it from where i clicked.
@TradeDEVRBLX |
|
|
| Report Abuse |
|
|