azerion / phaser-spine

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

Pause spine object? #85

Closed TinyDobbins closed 7 years ago

TinyDobbins commented 7 years ago

Phaser pause game.paused = true; does not apply to spine objects animation. Add please the opportunity to pause spine animation object.

NeoHoffa commented 7 years ago

@AnubisCode

You can use the following to pause.

character.state.timeScale = 0; // set to 1 to resume

TinyDobbins commented 7 years ago

@NeoHoffa thanks a lot!

AleBles commented 7 years ago

or spine.globalAutoUpdate = false;