rotating object with ease???

Subscribe to rotating object with ease??? 10 posts

Sign in to reply


 
avatar for DriftingSteps DriftingSteps 44 posts
Flag Post

here’s an example that i found and its flash banner is quite awesome.

if u look closer, you’ll see that the rims of the car eases so nicely as if it is real..
but it such an effect possible without AS?? or is AS used in creating such effects?
thanks,
~ DS

 
avatar for UnknownGuardian UnknownGuardian 6220 posts
Flag Post

You can tween the object I believe, but yes, you can use Actionscript to create such a thing pretty easily.

 
avatar for DriftingSteps DriftingSteps 44 posts
Flag Post

wow!
and how do i do it without the tweens [coz i tried alot and its all failure] that is with Actionscript..?
is it difficult? [im a novice at coding :’(]
~ DS

 
avatar for UnknownGuardian UnknownGuardian 6220 posts
Flag Post

The wheels could easily be rotated with code in about 1 line as the animation moves along. They could have done this, as it would be easiest to make realistic, and using tweening might take a little longer.

 
avatar for penguinquest penguinquest 28 posts
Flag Post

All I can think of is something like:( root.rotation += 5; )
Somethin like that…

 
avatar for UnknownGuardian UnknownGuardian 6220 posts
Flag Post

How about _rotation = _x; Try it. It comes up with an interesting combination for circular objects. You might have to multiply the _x by a little bit to get it the way you want with the size of the wheel, but it should come out pretty good/realistic looking.

 
avatar for penguinquest penguinquest 28 posts
Flag Post

Wait, why isn’t my _ showing up…
root.rotation += 5;

 
avatar for dasmitimsad dasmitimsad 1762 posts
Flag Post

You need to have <code> or <pre> tags before and after code.

I suggest you do something like Unknown said. That would probably be the easiest way.

 
avatar for Electron_Games Electron_Games 156 posts
Flag Post

Yes, the _rotation = _x; idea should work very nicely. I never would have though of that, lol.

 
avatar for UnknownGuardian UnknownGuardian 6220 posts
Flag Post
Originally posted by Electron_Games:

Yes, the _rotation = _x; idea should work very nicely. I never would have though of that, lol.

Yer welcome. I wasn’t looking for an effect like that, just something different, so I tried making rotation the same as its x position and it turned out pretty cool and different.

Sign in to reply