mirror of
https://github.com/photonstorm/phaser
synced 2024-11-25 14:10:42 +00:00
Update CHANGELOG.md
This commit is contained in:
parent
bc694ce4ac
commit
d47e59944d
1 changed files with 3 additions and 0 deletions
|
@ -223,6 +223,9 @@ The Animation API has had a significant overhaul to improve playback handling. I
|
|||
* `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.
|
||||
* 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.
|
||||
* `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)
|
||||
* `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.
|
||||
* `AnimationManager.getMix` is a new method that will return the mix duration between the two given animations.
|
||||
* `AnimationManager.removeMix` is a new method that will remove the mixture between either two animations, or all mixtures for the given animation.
|
||||
* `AnimationState.remove` is a new method that will remove a locally stored Animation instance from a Sprite.
|
||||
* `AnimationState.get` is a new method that will return a locally stored Animation instance from the Sprite.
|
||||
* `AnimationState.exists` is a new method that will check if a locally stored Animation exists on the Sprite.
|
||||
|
|
Loading…
Reference in a new issue