Welcome Guest [Log In] [Register]
Welcome to Brackenwood. We hope you enjoy your visit.


You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
As Rotation?; Speed control
Topic Started: Jun 15 2005, 05:32 AM (123 Views)
BonzaiRob
Member Avatar
The Demon Plasterer
What is the code for something to spin in place? I'm completely lost when it comes to trig and all that...

What I want is for it to spin at the speed of how much is loaded - ie 100 for 100%, like in weelbs-stuff animations. I've been doing a lot of searching online though, and I've found very little (nothing working obviously).

Well, thanks...
Offline Profile Quote Post Goto Top
 
Jaehl
Everybody stand back! I know regular expressions!
._rotation is your man.

_root.onEnterFrame = function() {
object._rotation += percentspeed;
}
Offline Profile Quote Post Goto Top
 
BonzaiRob
Member Avatar
The Demon Plasterer
That's perfect, thanks a lot!
Offline Profile Quote Post Goto Top
 
KWarp
Member Avatar
Brackenwood Middleweight
Beat me to it. :P

Also, the Weebl's Stuff preloaders stop spinning eventually. I don't think the're any AS controlling the spinning.
Offline Profile Quote Post Goto Top
 
Vector
Member Avatar
Resident Actionscript Guru ♂
Admin
Yeah,it is actually. It jsut ends up spinning so fast that it looks like it isn't :P
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Actionscript · Next Topic »
Add Reply