Jump to content
Search Community

Complete tween immediately

dro test
Moderator Tag

Recommended Posts

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

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

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