A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Rotation and deceleration?

Threaded View

  1. #1
    Junior Member
    Join Date
    Oct 2001
    Posts
    23

    Rotation and deceleration?

    I have a clip which orients itself to the mouse using Math.atan2(). The rotation calculation of the clip includes some deceleration to smooth the effect. The calculation goes crazy when:

    _root._xmouse < clip._x && _root._ymouse > clip._y

    I can identify in the code when it happens, but need some help to stop it... anyone?

    See the file attached for an example.
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center