azerion / phaser-spine

A plugin for Phaser 2 that adds Spine support
MIT License
121 stars 57 forks source link

Scale the timeline of an animation #57

Closed NeoHoffa closed 7 years ago

NeoHoffa commented 7 years ago

Is there a way to adjust the speed of an entire animation? For example, if I wanted an animation to animate at half speed, or double speed.

Something to the effect of, mySpine.currentAnimation.timeScale = .5;

Thanks!

DavidZwit commented 7 years ago

@NeoHoffa You're probably looking for mySpine.state.timeScale :)

NeoHoffa commented 7 years ago

@DavidZwit,

You sir, are a gentleman and a scholar! ;)

Perfect! Thanks!