A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Easing in rotation in Actionscript 2.0

  1. #1
    Senior Member
    Join Date
    Dec 2009
    Posts
    109

    Question Easing in rotation in Actionscript 2.0

    How can I manipulate an object's rotation to ease in toward a specific rotation?

    This is my script so far:


    clip.trot = Math.atan2(clip._y-clip.targety,clip._x-clip.targetx)*180/Math.PI-270;

    clip._rotation += (clip.trot-clip._rotation)/2;
    Syntax Error

  2. #2
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    old but the Math is still accurate:
    http://www.bit-101.com/tutorials/easing.html

    gparis

  3. #3
    Senior Member
    Join Date
    Dec 2009
    Posts
    109
    thanks but i need to know the formula for easing in with rotation.
    Last edited by Adamkyler; 12-23-2009 at 12:46 PM.
    Syntax Error

  4. #4
    Junior Member
    Join Date
    Dec 2009
    Posts
    5
    that in the scripting samples !?

    (im new...)

  5. #5
    Senior Member
    Join Date
    Dec 2009
    Posts
    109
    what?
    Syntax Error

  6. #6
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    Quote Originally Posted by Adamkyler View Post
    thanks but i need to know the formula for easing in with rotation.
    http://www.robertpenner.com/easing/p...7_tweening.pdf

    you have them all here.

    gparis

Tags for this Thread

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