phaser icon indicating copy to clipboard operation
phaser copied to clipboard

SpineGameObject's setFlipX method not working.

Open fengli-master opened this issue 6 years ago • 2 comments

Version

  • Phaser Version: 3.22
  • Operating system: MacOs
  • Browser: Chrome

Description

The SpineGameObject's setFlipX method not working.

Example Test Code

var spineGameObject = this.scene.add.spine(0, 0, 'spineName', 'animationName', false)
spineGameObject.setFlipX()

fengli-master avatar Feb 23 '20 10:02 fengli-master

FlipX/Y was replaced with scaleX/Y in the Spine runtimes 3.7. There may have been the intention for Phaser3's Spine plugin to emulate this old functionality, but currently it doesn't do anything.

Use the spine objects scaleX/scaleY, it combines scaling and flipping functionality, with negative values setting the flip.

spayton avatar Mar 03 '20 20:03 spayton

FlipX/Y was replaced with scaleX/Y in the Spine runtimes 3.7. There may have been the intention for Phaser3's Spine plugin to emulate this old functionality, but currently it doesn't do anything.

Use the spine objects scaleX/scaleY, it combines scaling and flipping functionality, with negative values setting the flip.

Got it, thanks

fengli-master avatar Mar 04 '20 09:03 fengli-master