Jump to content
GreenSock

hano

Tweening from point to point

Recommended Posts

Is there any way I can get a movieclip to tween from point A to B, but to go past B and then back? Sort of like a bounce effect..

Link to comment
Share on other sites

Just use the Back.easeOut ease.

 

TweenLite.to(mc, 1, {x:300, ease:Back.easeOut});

Link to comment
Share on other sites

is it possible to specify how much i want it to overshoot? right now its going way overboard, but whenever i try to enter parameters it doesn't seem to work

 

 

thanks :3

Link to comment
Share on other sites

Sure. Just use the easeParams, like:

 

TweenLite.to(mc, 1, {y:50, ease:Back.easeOut, easeParams:[0.5]});

 

Change the 0.5 to be whatever you want. The smaller the number, the less it overshoots.

Link to comment
Share on other sites

that works great thank you : )

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×