dro Posted March 17, 2016 Share Posted March 17, 2016 Probably this simple question was answered before. Is it possible to immediately finish tween (set all properties to target values and kill the tween)? I was trying tween.time (tween.totalTime()); but that didn't help. Could you help please? Link to comment Share on other sites More sharing options...
Carl Posted March 17, 2016 Share Posted March 17, 2016 please try: tween.progress(1); 1 Link to comment Share on other sites More sharing options...
dro Posted March 17, 2016 Author Share Posted March 17, 2016 that does work indeed. Thank you very much. Link to comment Share on other sites More sharing options...
GreenSock Posted March 17, 2016 Share Posted March 17, 2016 Yep, tween.progress(1) is easiest. I think you meant to do tween.time(tween.duration()) instead of tween.time(tween.totalTime()) in your earlier example. The totalTime() is the playhead position in the overall animation (including repeats), so your code was basically telling the playhead to go to where it currently was already. 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