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 » Scripting Helpers
Home Search
 

Re: Gradual GUI movement?

Previous Thread :: Next Thread 
KanataIzumi7 is not online. KanataIzumi7
Joined: 08 May 2011
Total Posts: 949
22 May 2013 11:14 PM
Essentislly, I want a certain image on the screen to move at a consant pace to a set position.
I know how to use UDim....but it isn't as smooth as I'm wanting it to be....
Any suggestions on how I can get the effect I'm wanting?
Report Abuse
StormRecon is not online. StormRecon
Joined: 15 Aug 2010
Total Posts: 2214
22 May 2013 11:16 PM
http://wiki.roblox.com/index.php/TweenPosition

Add 5366 to my post count.
Report Abuse
KanataIzumi7 is not online. KanataIzumi7
Joined: 08 May 2011
Total Posts: 949
22 May 2013 11:19 PM
So this will make it slow and consistant?
Report Abuse
StormRecon is not online. StormRecon
Joined: 15 Aug 2010
Total Posts: 2214
22 May 2013 11:21 PM
You can set how long it will take to the desired position.

You should read the page a bit more

Add 5366 to my post count.
Report Abuse
KanataIzumi7 is not online. KanataIzumi7
Joined: 08 May 2011
Total Posts: 949
22 May 2013 11:47 PM
Ok, I set all the values up correctly (I think)....and I tried to get it to repeat moving into different positions, however, it isn't working....what's wrong?



Script;


while true do
script.Parent:TweenPosition(UDim2.new(0, -850, 0, 70), "Out", "Linear", 30)
wait(1)
script.Parent:TweenPosition(UDim2.new(0, 0, 0, 70), "Out", "Linear", 30)
wait(1)
end
Report Abuse
WishNite is not online. WishNite
Joined: 11 Feb 2009
Total Posts: 15828
22 May 2013 11:52 PM
script.Parent:TweenPosition(UDim2.new(0, -850, 0, 70), "Out", "Linear", 30,true)

Be warned, though, that it takes 30 seconds for it to change.

while true do
script.Parent:TweenPosition(UDim2.new(0, -850, 0, 70), "Out", "Linear", 30, true)
wait(30)
script.Parent:TweenPosition(UDim2.new(0, 0, 0, 70), "Out", "Linear", 30, true)
wait(30)
end
Report Abuse
KanataIzumi7 is not online. KanataIzumi7
Joined: 08 May 2011
Total Posts: 949
22 May 2013 11:57 PM
So the bottom portion of the script will keep it moving back and forth 'forever'?
Report Abuse
KanataIzumi7 is not online. KanataIzumi7
Joined: 08 May 2011
Total Posts: 949
22 May 2013 11:59 PM
Thanks a bundle! :3
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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