fast -> slow -> stop using actionscript

  • buzzby365
  • Proficient
  • Proficient
  • buzzby365
  • Posts: 288

Post 3+ Months Ago

i am after a script (lost thru reformat) that allows an animation to start of very fast then slow down then stop as it gets nearer its finishing point. this works well for a shape moving from left to right. it starts off fast then as it gets to its destination is slows down to a halt.

what script is used for this please?
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • digitalMedia
  • a.k.a. dM
  • Genius
  • User avatar
  • Posts: 5149
  • Loc: SC-USA

Post 3+ Months Ago

The concept you're speaking of is called 'easing out', or more generally 'easing'.

You can do this programatically. The concept is that you have a starting point and an enpoint. For every loop, you find the distance between the two points, take a fraction of that distance (like 25%), and move the object that far toward it's endpoint. After every move the 25% will be less and less, thereby creating the illusion of easing to a stop.

Otherwise, flash has a built-in ability to handle easing in tweened animations.
  • buzzby365
  • Proficient
  • Proficient
  • buzzby365
  • Posts: 288

Post 3+ Months Ago

i get what you are saying but i dont have any idea of how to put that into action script. how do i start this off? do u know a tute that can better explain this concept?

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 11 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.