Jump to content
Search Community

easeback to x=0

burn test
Moderator Tag

Recommended Posts

Hi burn4ever,

Glad to see you're taking advantage of Carl's excellent tutorials.

I'm not sure exactly what you're asking.

Are you saying that you tween an mc from an x of 0 to somewhere on the stage with a large easeParam like in Carl's tutorial, but then you want to tween it back to 0 using a different speed?

 

You can acheive this with 2 tweens:

 

TweenMax.to(mc, 2, {x:400, ease:Back.easeOut, easeParams:[4] } );
TweenMax.to(mc, 4, {x:0, ease:Back.easeOut ,delay:2} );

 

The first tween uses a large ease parameter and tweens in 2 seconds, the second tween goes at a slower pace, 4 seconds, and uses the default ease value.

 

Is this what you're asking?

Perhaps a bit more detail is required if not.

Link to comment
Share on other sites

Hello again burn4ever,

I just had a re-read over your post, and I think this is what you're after:

 

TweenMax.to(mc, 1, {x:400, ease:Quad.easeOut} );
TweenMax.to(mc, 3, {x:0, ease:Quad.easeIn,delay:1} );

 

Let us know.

X10

Link to comment
Share on other sites

You can acheive this with 2 tweens:

 

TweenMax.to(mc, 2, {x:400, ease:Back.easeOut, easeParams:[4] } );
TweenMax.to(mc, 4, {x:0, ease:Back.easeOut ,delay:2} );

 

The first tween uses a large ease parameter and tweens in 2 seconds, the second tween goes at a slower pace, 4 seconds, and uses the default ease value.

.

 

Thanks X10,

thats what I´m looking for.

 

Easy, hee ;-)

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.
×
×
  • Create New...