Skip to content

v20.0.0 - Good luck, bunnies!

Compare
Choose a tag to compare
@trusktr trusktr released this 23 Apr 04:19
· 92 commits to main since this release

You won't be able to outrun the fox!

Fixes

  • Fixed the video_and_time example which sometimes didn't play a video.

Breaking changes:

  • By default, the "dynamic to" feature is no longer enabled. To enable it, you must now enable it with tween.dynamic(true).

    Warning When dynamic is set to false, Tween makes a copy of the object passed into tween.to() and will never modify it (hence updating the original object from the outside is not dynamic). When dynamic is true, Tween uses the original object as the source of values during animation (every update reads the values, hence they can be modified dynamically) but note that in dynamic mode, Tween will modify any interpolation arrays of the object passed into tween.to() which may cause side-effects on any external code that may also rely on the same object.
    We've added two new dynamic_to examples. In each example, when dynamic is disabled, the fox cannot catch any rabbits. When dynamic is enabled, the rabbits have no chance!

  • tween.to() now throws if it is called when a tween is started (even if paused). Call tween.stop() first before setting a new .to() value.