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
+10-4Lines changed: 10 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,8 +52,9 @@ being passed to the simulation. The default value is 1 to remain consistent with
52
52
53
53
### Animation Component Updates
54
54
55
-
We have refactored a large part of the Animation API to make it more consistent with the rest of Phaser 3 and to fix some issues. The following changes all apply to the Animation Component:
55
+
We have refactored the Animation API to make it more consistent with the rest of Phaser 3 and to fix some issues. All of the following changes apply to the Animation Component:
56
56
57
+
* Animation durations, delays and repeatDelays are all now specified in milliseconds, not seconds like before. This makes them consistent with Tweens, Sounds and other parts of v3. You can still use the `frameRate` property to set the speed of an animation in frames per second.
57
58
*`delay` method has been removed.
58
59
*`setDelay` allows you to define the delay before playback begins.
59
60
*`getDelay` returns the animation playback delay value.
@@ -81,13 +82,18 @@ We have refactored a large part of the Animation API to make it more consistent
81
82
*`getTotalFrames` returns the total number of frames in the animation.
82
83
*`totalProgres` method has been removed as it did nothing and was mis-spelt.
83
84
*`yoyo` method has been removed.
84
-
*`getYoYo` returns if the animation will yoyo or not.
85
-
*`setYoYoScale` sets if the animation will yoyo or not.
85
+
*`getYoyo` returns if the animation will yoyo or not.
86
+
*`setYoyo` sets if the animation will yoyo or not.
86
87
*`updateFrame` will now call `setSizeToFrame` on the Game Object, which will adjust the Game Objects `width` and `height` properties to match the frame size. Fix #3473 (thanks @wtravO@jp-gc)
87
88
*`updateFrame` now supports animation frames with custom pivot points and injects these into the Game Object origin.
88
89
*`destroy` now removes events, references to the Animation Manager and parent Game Object, clears the current animation and frame and empties internal arrays.
90
+
* 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.
89
91
90
-
Also, my thanks to the following for helping with the Phaser 3 Examples and Docs, either by reporting errors, fixing them or helping author the docs: @gabegordon@melissaelopez@samid737@nbs@tgrajewski@pagesrichie@hexus@mbrickn@erd0s@icbat@Matthew-Herman
92
+
### Examples, Documentation and TypeScript
93
+
94
+
My thanks to the following for helping with the Phaser 3 Examples, Docs and TypeScript definitions, either by reporting errors, fixing them or helping author the docs:
0 commit comments