Jump to content
Search Community

Is Tween "layering" on the same object possible?

danee987 test
Moderator Tag

Recommended Posts

Here is a quick example of what I mean. Say you have a circle called circle_mc located on the top left of the stage. Now say this circle_mc has a tween that animates it to the bottom right corner. Now what I want to do is that as it is moving down to the bottom right corner I want it to sort of oscillate or jitter smoothly as it is traveling down. My question is, can this be done while only targeting circle_mc? I would need two tweens sort of layered on top of each other and both modifying the x and y position of circle_mc at the same time but in different ways. This doesn't sound possible... is it? lol

Link to comment
Share on other sites

I don't know if I am visualizing the effect you are after accurately, but yes you can run multiple tweens on the same object at the same time.

 

if using TweenLite just be sure the OverwriteManager is using the proper mode: http://www.greensock.com/overwritemanager/

 

 

import com.greensock.*;
OverwriteManager.init(2);

TweenLite.to(mc, 4, {x:400, ease:Bounce.easeOut});
TweenLite.to(mc, 3, {y:400, delay:1, ease:Bounce.easeIn});

 

you may want to investigate RoughEase: http://www.greensock.com/roughease/

 

tutorial/example: http://www.snorkl.tv/2010/10/use-tweenl ... er-effect/

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...