View Full Version : Smooth rotation
monty
January 20th, 2004, 10:09 PM
Howdy,
I'm pretty new to AS and need some help on getting a frisbee to rotate both quickly and smoothly. The code I am using so far is as follows:
onClipEvent(enterFrame)
{
this._rotation += 100;
}
The code makes the disc rotate, but the rotation is choppy...I'm trying to go for an effect like the disc is spinning in the air...
Any suggestions?
Thanks!
senocular
January 20th, 2004, 10:17 PM
try a smaller number ;)
And welcome to the forums! :D
monty
January 21st, 2004, 12:39 PM
a smaller number makes the rotation too slow. I need the rotation fast, but also smooth...
I was thinking a motion blur effect may help, but I have no idea how to code that in
lunatic
January 21st, 2004, 12:56 PM
what's your frame rate? ;)
monty
January 21st, 2004, 01:22 PM
just the standard 12 fps right now....
I tried making a movie with a higher framerate (60fps), then importing it into another movie, but it ran at 12 fps instead of the 60 it was saved at
lunatic
January 21st, 2004, 01:26 PM
Your frame rate will always be whatever your main swf is set to. So if you set a swf to 60 and then import that into another swf that is 12 then it will be 12. Make your main swf that runs everything else the frame rate you want (better yet make ALL the swfs of your project the same frame rate).
Getting smooth animation is pretty much trial and error playing with the frame rate and the speed variable. Like Sen said, try reducing the speed you had set but also increase the frame rate - and start with small increases/decreases so you can see what's happenning. Or adjust one and then the other. :)
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.