Jump to content
Search Community

Animate two different tweens at the same time

Tweenrookie test
Moderator Tag

Recommended Posts

Hello folks.

 

So, i need to tween two objects at the same time. They do not share the same properties. One of them moves to a certain place, while the other moves to another certain place. I guess that is why i couldn't use "TweenMax.allTo" right?

 

I have been looking at tutorials in youtube, and i could do it with TimelineLite, but that is for tweening one animation after another, and i want to animate them both at the same exact time.

 

Suggestions?

Link to comment
Share on other sites

Solved!

 

" Absolutely, gpon. You can have as many tweens going as you want at the same time. For example:
 

var t:TimelineLite = new TimelineLite();
t.insert( new TweenLite(mc1, 1, {x:100}), 0);
t.insert( new TweenLite(mc2, 1, {y:200}), 0);

that has mc1 and mc2 tweening different properties at the same time.

If you haven’t done so already, I’d highly recommend watching the video at http://www.greensock.com/timeline-basics/ "

  • Like 1
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...