PDA

View Full Version : rotation in AS



Troll_axethrowe
April 21st, 2003, 09:01 PM
i've just figured out how to do the _rotation thing in actionscript. But it does it immediately. How do i span this process over 10 frames or so?

On a side note, can someone quickly tell me what the point of _root is? I've done things without that in it and they work fine.

zylum
April 21st, 2003, 10:16 PM
try using this AS :
rotateSpeed = 10
myMovieClip._rotation = 0
myMovieClip.onEnterFrame = function (){
this._rotation += rotateSpeed
}

it's pretty self explanitory...

mlk
April 22nd, 2003, 02:42 AM
yup dont forget to put the keyframe and then 10 frames trailing behind it so it only rotates every 10 frames

Troll_axethrowe
April 22nd, 2003, 07:52 PM
man, I cant get this thing to work, Heres the file. What i want is to rotate the sword by 90 degrees and still have the trailer following it. I'm doing this because when i use the rotate and scew tool, the trail no longer works.