Jump to content
Search Community

Simultaneous tweens on one object (custom easing)

tenka1 test
Moderator Tag

Recommended Posts

Hi,

 

I have a project where we're using TweenMax to move a papervision object.

 

We want to move the x, z and rotation properties of a single object simultaneously but with different easing for each of the properties.

Is there an easy way to do this? We're trying to use the Overwrite features but nothing seems to be working.

 

Any help is appreciated.

Link to comment
Share on other sites

Absolutely - just create a separate tween for each property (each tween can only have one ease). No need to set a special overwrite property in TweenMax - it uses the AUTO mode by default which is smart enough to analyze each tween and only kill overlapping properties of the same object that are running at the same time.

Link to comment
Share on other sites

We actually tried that but it seems like each tween is overwriting the former tween.

We're trying to get a x, z, rotation and blur all with different eases all on the same plane.

 

The code is written in that order, so for a split second you can see the x, z, and rotation tweens before the final blur tweens in fully. The others cut off immediately.

 

Is the timeline class useful for something like this? Or are we totally off-track?

Link to comment
Share on other sites

I'm guessing it must be a Papervision issue. Have you tried removing Papervision from the equation? Just try tweening the x, y, and rotation or something of a plain old Sprite or MovieClip and see if you still have problems. There is nothing inside TweenLite/Max that treats Papervision objects differently. The same code drives all tweens.

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