Skip to content

Commit d47e599

Browse files
committed
Update CHANGELOG.md
1 parent bc694ce commit d47e599

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,9 @@ The Animation API has had a significant overhaul to improve playback handling. I
223223
* `AnimationState.create` is a new method that allows you to create animations directly on a Sprite. These are not global and never enter the Animation Manager, instead risiding within the Sprite itself. This allows you to use the same keys across both local and global animations and set-up Sprite specific local animations.
224224
* All playback methods: `play`, `playReverse`, `playAfterDelay` and `playAfterRepeat` will now check to see if the given animation key exists locally on the Sprite first. If it does, it's used, otherwise it then checks the global Animation Manager for the key instead.
225225
* `AnimationState.skipMissedFrames` is now used when playing an animation, allowing you to create animations that run at frame rates far exceeding the refresh rate, or that will update to the correct frame should the game lag. Feature #4232 (thanks @colorcube)
226+
* `AnimationManager.addMix` is a new method that allows you to create mixes between two animations. Mixing allows you to specify a unique delay between a pairing of animations. When playing Animation A on a Game Object, if you then play Animation B, and a mix exists, it will wait for the specified delay to be over before playing Animation B. This allows you to customise smoothing between different types of animation, such as blending between an idle and a walk state, or a running and a firing state.
227+
* `AnimationManager.getMix` is a new method that will return the mix duration between the two given animations.
228+
* `AnimationManager.removeMix` is a new method that will remove the mixture between either two animations, or all mixtures for the given animation.
226229
* `AnimationState.remove` is a new method that will remove a locally stored Animation instance from a Sprite.
227230
* `AnimationState.get` is a new method that will return a locally stored Animation instance from the Sprite.
228231
* `AnimationState.exists` is a new method that will check if a locally stored Animation exists on the Sprite.

0 commit comments

Comments
 (0)