Jump to content
Search Community

OverwriteManager.YIELD?

Steve test
Moderator Tag

Recommended Posts

I would like another overwrite method which yields to any pre-existing tweens - so simply doesn't overwrite properties of an object if they are currently already being tweened.

 

I guess it could even have it's own property, as you may wish to use a different selection criteria - so for example TweenMax.to(this, 1, {x:100, y:100, yield:auto}).

 

In the above example, if the x parameter was already being tweened, then only the y parameter would be tweened.

 

Is there already an easy way to achieve this?

 

Cheers,

 

Steve

Link to comment
Share on other sites

Could you help me understand a real-world scenario in which this would be helpful? I've done a lot of tweening and have never come across a need for something like this, but maybe you can help me see the light :) I'm typically hesitant to add features (which increase file size) unless there's significant value that many developers will use/appreciate.

 

Have you seen the TweenMax.isTweening() method? Maybe that's something that'd help you discern in the target is currently tweening so that you can avoid creating a new tween unnecessarily.

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