Steve Posted March 7, 2012 Share Posted March 7, 2012 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 More sharing options...
GreenSock Posted March 7, 2012 Share Posted March 7, 2012 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now