Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Tutorial: rotating a gun in flash

Loading...

Sign in or sign up now!
1,717
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jul 27, 2009

This will show you how to make things rotate with actionscript 2.0 in flash cs3.

code: onClipEvent(enterFrame){ radians = Math.atan2(_root._ymouse-this._y, _root._xmouse-this._x); degrees = (radians/Math.PI)*180;
this._rotation = degrees;
}

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:
see all

All Comments (4)

Sign In or Sign Up now to post a comment!
  • omg it works!!! ty soooo much, plz bring out more videos :)

  • this helped so much thanks!

  • this is the tutorial on rotation that actually works. ty

  • Cheers for the tut man!

    Was looking for something that explaines how to use MovieClip.angle, cos I'm having trouble manipulating the Angles of my MovieClips, eventualy I wanna be able to do a carosel and am using ActionScript 3.0, but that angle thing is getting in the way.

Loading...

0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more