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 » Scripters
Home Search
 

Re: Animation Pro Tip

Previous Thread :: Next Thread 
xdhunta1774 is not online. xdhunta1774
Joined: 28 Jun 2011
Total Posts: 1112
20 Apr 2012 07:39 AM
instead of
for i=0.1,1,0.1 do

stuff
wait()
end

do it like

for i=0.1,1,0.1 do
i=math.sin(math.pi/2*i)
stuff
end

much smoother animation

umad secret animation magic nibs
Report Abuse
Brandonhare is not online. Brandonhare
Joined: 02 May 2007
Total Posts: 11005
20 Apr 2012 08:18 AM
So we have to take out the wait() and make sure we use the loop counter (or whatever it's called) as a variable?
Report Abuse
xdhunta1774 is not online. xdhunta1774
Joined: 28 Jun 2011
Total Posts: 1112
20 Apr 2012 08:20 AM
i never said that
Report Abuse
xdhunta1774 is not online. xdhunta1774
Joined: 28 Jun 2011
Total Posts: 1112
20 Apr 2012 08:21 AM
just make the i a sine
Report Abuse
Brandonhare is not online. Brandonhare
Joined: 02 May 2007
Total Posts: 11005
20 Apr 2012 08:24 AM
Ok, so apparently you can do whatever you want to 'i'/counter/thing and the loop runs fine. I didn't know that before.
Report Abuse
trappingnoobs is not online. trappingnoobs
Joined: 05 Oct 2008
Total Posts: 19100
20 Apr 2012 01:36 PM
You've made me facepalm at how horrible and unworking your code is twice today.

Are you sure you can even script?
Report Abuse
stravant is not online. stravant
Forum Moderator
Joined: 22 Oct 2007
Total Posts: 2893
20 Apr 2012 03:50 PM
"Ok, so apparently you can do whatever you want to 'i'/counter/thing and the loop runs fine. I didn't know that before."

Don't just do that whenever you want in other languages though. Only some languages will let you do that, Lua happens to be one of the ones that does let you do it.

I have yet to use it once in real code though. If you do use it take a second to think, since you might me whiting something terrible, like the thing in this post.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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