|
| 04 Feb 2014 03:59 PM |
Here's an extract from the script: script.Parent.Frame:TweenPosition(UDim2.new(0.2,0,0.1,0), "In", "Linear", 2, false) wait(4) script.Parent.Frame:TweenPosition(UDim2.new(1.1,0,0.1,0), "Out", "Linear", 2, false) script.Parent.Frame.Position = UDim2.new(-0.8,0,0.1,0)
So, as you can see, I've tweened the frame to where you can view it, and then tweened it to the right so it goes away. However, I want it to change position, but it just won't do it. No output error or anything.
can't think of a siggy right now :/ |
|
|
| Report Abuse |
|
|
kingmatt2
|
  |
| Joined: 20 Aug 2011 |
| Total Posts: 6494 |
|
|
| 04 Feb 2014 04:02 PM |
script.Parent.Frame:TweenPosition(UDim2.new(1.1,0,0.1,0), "Out", "Linear", 2, false) script.Parent.Frame.Position = UDim2.new(-0.8,0,0.1,0)
You cant put two of them right next to each other. Also (-0.8,0,0.1,0) Puts it like off the screen. |
|
|
| Report Abuse |
|
|
|
| 04 Feb 2014 04:02 PM |
I know. It's meant to return to where it originally was, so it's hidden and comes in. Anyway, how would I sort the problem? You just copy and pasted it. I tried a wait but it still didn't work.
can't think of a siggy right now :/ |
|
|
| Report Abuse |
|
|
|
| 04 Feb 2014 04:07 PM |
Bump
can't think of a siggy right now :/ |
|
|
| Report Abuse |
|
|
|
| 04 Feb 2014 04:12 PM |
le bump..
can't think of a siggy right now :/ |
|
|
| Report Abuse |
|
|
kingmatt2
|
  |
| Joined: 20 Aug 2011 |
| Total Posts: 6494 |
|
|
| 04 Feb 2014 04:15 PM |
| The script wont wait for tween position to stop moving. So you have to put a wait between them. |
|
|
| Report Abuse |
|
|
|
| 04 Feb 2014 04:15 PM |
i already said that adding a wait doesn't work.
can't think of a siggy right now :/ |
|
|
| Report Abuse |
|
|
|
| 04 Feb 2014 04:16 PM |
*sigh* back to the bumping.
can't think of a siggy right now :/ |
|
|
| Report Abuse |
|
|
|
| 04 Feb 2014 04:19 PM |
presto bumpo
can't think of a siggy right now :/ |
|
|
| Report Abuse |
|
|
|
| 04 Feb 2014 04:20 PM |
abracabump
can't think of a siggy right now :/ |
|
|
| Report Abuse |
|
|
|
| 04 Feb 2014 04:23 PM |
bumpilicious
can't think of a siggy right now :/ |
|
|
| Report Abuse |
|
|
kingmatt2
|
  |
| Joined: 20 Aug 2011 |
| Total Posts: 6494 |
|
| |
|
|
| 04 Feb 2014 04:27 PM |
well, both tweens work perfectly. but the line that changes the position won't kick in. i tried putting a wait between the tween line and the position line, but it still didn't work.
can't think of a siggy right now :/ |
|
|
| Report Abuse |
|
|
|
| 04 Feb 2014 04:45 PM |
It appears nobody is going to help me. Thanks a bunch.
can't think of a siggy right now :/ |
|
|
| Report Abuse |
|
|
kingmatt2
|
  |
| Joined: 20 Aug 2011 |
| Total Posts: 6494 |
|
|
| 04 Feb 2014 05:14 PM |
| Maket he tween move off screen indsted of the postiion? |
|
|
| Report Abuse |
|
|
|
| 05 Feb 2014 09:24 AM |
It goes off the screen ffs It goes off the screen at the RIGHT, and it SHOULD change position to the LEFT but that DOESN'T WORK.
can't think of a siggy right now :/ |
|
|
| Report Abuse |
|
|
|
| 05 Feb 2014 09:25 AM |
| For one thing, you can use TweenSizeAndPosition to save yourself some typing. |
|
|
| Report Abuse |
|
|
|
| 05 Feb 2014 09:32 AM |
I'm not changing the size..
can't think of a siggy right now :/ |
|
|
| Report Abuse |
|
|
|
| 05 Feb 2014 10:15 AM |
fruitybump
can't think of a siggy right now :/ |
|
|
| Report Abuse |
|
|
|
| 05 Feb 2014 10:17 AM |
| You are tweening it to past the edge of the screen. First number in each set of two in a UDim2 is scale |
|
|
| Report Abuse |
|
|
kingmatt2
|
  |
| Joined: 20 Aug 2011 |
| Total Posts: 6494 |
|
|
| 05 Feb 2014 10:33 AM |
| Give us more info. Like you want it to do this, but this happened, blah blah you know? |
|
|
| Report Abuse |
|
|
|
| 05 Feb 2014 10:59 AM |
I've told you at least twice. I want it to tween to the right, off screen. It does this. Then, I want it to "teleport" to the left, still off screen, so it can come back to go to the right again. Everything works, EXCEPT THE POSITION DOESN'T CHANGE. The tween works, it's just this line that doesn't:
script.Parent.Frame.Position = UDim2.new(-0.8,0,0.1,0)
Now will you stop asking pointless questions that I've already answered
can't think of a siggy right now :/ |
|
|
| Report Abuse |
|
|
kingmatt2
|
  |
| Joined: 20 Aug 2011 |
| Total Posts: 6494 |
|
|
| 05 Feb 2014 11:19 AM |
Okay by what you said, here is an idea.
you want it to teleport back to the original position? Well theres ur prob..
On click function. Change position to off screen. Tween wait(4) Tween
Dont forget to add a debounce. |
|
|
| Report Abuse |
|
|
|
| 05 Feb 2014 11:41 AM |
Onclick? Why would I make this onclick? This is an animated notice board. If you click it, then it's pointless.
me>legend of korra>you |
|
|
| Report Abuse |
|
|
kingmatt2
|
  |
| Joined: 20 Aug 2011 |
| Total Posts: 6494 |
|
|
| 05 Feb 2014 11:42 AM |
| When I said on clikc function, I meant any function that you were useing to active it. |
|
|
| Report Abuse |
|
|