You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,6 +49,7 @@ being passed to the simulation. The default value is 1 to remain consistent with
49
49
* The ComputedSize Component now has `setSize` and `setDisplaySize` methods. This component is used for Game Objects that have a non-texture based size.
50
50
* The GamepadManager now extends EventEmitter directly, just like the KeyboardManager does.
51
51
* The Gamepad Axis threshold has been increased from 0.05 to 0.1.
52
+
* Utils.Array.FindClosestInSorted has a new optional argument `key` which will allow you to scan a top-level property of any object in the given sorted array and get the closest match to it.
52
53
53
54
### Animation Component Updates
54
55
@@ -67,6 +68,7 @@ We have refactored the Animation API to make it more consistent with the rest of
67
68
*`play` now returns the parent Game Object instead of the component.
68
69
*`progress` method has been removed.
69
70
*`getProgress` returns the animation progress value.
71
+
*`setProgress` lets you jump the animation to a specific progress point.
70
72
*`repeat` method has been removed.
71
73
*`getRepeat` returns the animation repeat value.
72
74
*`setRepeat` sets the number of times the current animation will repeat.
@@ -88,6 +90,8 @@ We have refactored the Animation API to make it more consistent with the rest of
88
90
*`updateFrame` now supports animation frames with custom pivot points and injects these into the Game Object origin.
89
91
*`destroy` now removes events, references to the Animation Manager and parent Game Object, clears the current animation and frame and empties internal arrays.
90
92
* Changing the `yoyo` property on an Animation Component would have no effect as it only ever checked the global property, it now checks the local one properly allowing you to specify a `yoyo` on a per Game Object basis.
93
+
* Animation.destroy now properly clears the global animation object.
94
+
* Animation.getFrameByProgress will return the Animation Frame that is closest to the given progress value. For example, in a 5 frame animation calling this method with a value of 0.5 would return the middle frame.
0 commit comments