Jump to content
Search Community

Dynamic Properties -- the tween is always tweening?

robertnyc test
Moderator Tag

Recommended Posts

If you use dynamic properties plugin in the tween, is the tween always 'running'. That is, in the example you have on the site, the tween will always follow the mouse. Thus the tween is now a function that's always "listening'? Does this mean that any tweened objects are then never garbage-collected?

Link to comment
Share on other sites

Absolutely not. Tweens always have a duration. So a tween with a duration of 2 seconds will end after 2 seconds regardless of whether or not it uses dynamicProps. No need to worry about garbage collection like that. And you can see in the example that the tween honors the duration - that's one of the most useful things about dynamicProps - it figures out how fast it must move to honor the duration and the ease that you set in the tween and still reach the new destination values.

Link to comment
Share on other sites

Yes, of course. Thanks -- it was simply that the tween in the plugin explorer was set long enough (4 seconds) that I stopped exploring before it ran out -- assumed it ran forever, but if I moved mouse long enough, sure enough tween stopped.

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