|
| 09 Apr 2015 06:21 PM |
I'm making a nice, short, basic intro gui and I want to employ TweenSize. I have made many intro guis before, but theyve all used TweenPosition. This is my first time using size and I already have an issue. When I run it, the frames don't smoothly get bigger, as they all start with a size of {0, 0, 0, 0}. What it looks like on my screen, is that I may as well have altered transparency from 1 to 0,a s there is no animation, it suddenly appears. Any help would be great. Thanks!
wait(1)
--// Variable Storage
local lineOne = script.Parent.StepOne local lineTwoA = script.Parent.StepTwoA local lineTwoB = script.Parent.StepTwoB local lineThreeA = script.Parent.StepThreeA local lineThreeB = script.Parent.StepThreeB local text1 = script.Parent.Text1 local text2 = script.Parent.Text2 local text3 = script.Parent.Text3 local logo = script.Parent.Logo
--// Logic
lineOne:TweenSize(UDim2.new(0.15, 0, 0, 1), 'Out', 'Quint', .3, false) lineTwoA:TweenSize(UDim2.new(0, 1, 0.3, 0), 'Out', 'Quint', .3, true) lineTwoB:TweenSize(UDim2.new(0, 1, 0.3, 0), 'Out', 'Quint', .3, false) lineThreeA:TweenSize(UDim2.new(1, 0, 0, 1), 'Out', 'Quint', .3, true) lineThreeB:TweenSize(UDim2.new(1, 0, 0, 1), 'Out', 'Quint', .3, false)
|
|
|
| Report Abuse |
|
|
bomblover
|
  |
| Joined: 23 Mar 2011 |
| Total Posts: 238 |
|
|
| 09 Apr 2015 06:24 PM |
| You're using .3 e.e. .3 = how long it'll take for the GUI to reach the desired size |
|
|
| Report Abuse |
|
|
|
| 09 Apr 2015 06:26 PM |
| I know, I've tried changing it to 10 too, still the same result. |
|
|
| Report Abuse |
|
|
bomblover
|
  |
| Joined: 23 Mar 2011 |
| Total Posts: 238 |
|
| |
|
CrowClaws
|
  |
| Joined: 04 Jul 2010 |
| Total Posts: 4466 |
|
|
| 09 Apr 2015 06:26 PM |
lineOne:TweenSize(UDim2.new(0.15, 0, 0, 1), 'Out', 'Quint', .3, false) wait(.3) lineTwoA:TweenSize(UDim2.new(0, 1, 0.3, 0), 'Out', 'Quint', .3, true) wait(.3) lineTwoB:TweenSize(UDim2.new(0, 1, 0.3, 0), 'Out', 'Quint', .3, false) wait(.3) lineThreeA:TweenSize(UDim2.new(1, 0, 0, 1), 'Out', 'Quint', .3, true) wait(.3) lineThreeB:TweenSize(UDim2.new(1, 0, 0, 1), 'Out', 'Quint', .3, false)
I don't know what your problem is but
|
|
|
| Report Abuse |
|
|
Miro034
|
  |
| Joined: 07 Oct 2009 |
| Total Posts: 6568 |
|
|
| 09 Apr 2015 06:28 PM |
| I despise repeated lines. I'd rather use a table and use one line of TweenSize method. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
| |
|
ash877
|
  |
| Joined: 18 Feb 2008 |
| Total Posts: 5142 |
|
|
| 10 Apr 2015 02:10 AM |
| aren't they all getting tweened because Tweening doesn't wait for the code to run? |
|
|
| Report Abuse |
|
|
ash877
|
  |
| Joined: 18 Feb 2008 |
| Total Posts: 5142 |
|
|
| 10 Apr 2015 02:10 AM |
| So that means they all come in together at the same time. |
|
|
| Report Abuse |
|
|
|
| 10 Apr 2015 02:11 AM |
| The issue isnt that though, its the fact that they all appear out of nowhere and there is no animation of them changing size. One second they're invisible and the next they're not. |
|
|
| Report Abuse |
|
|