Jump to content

How to tween scale


qdrj
 Share

Recommended Posts

Hi,

 

How can I tween scale property for sprite?

We can easily tween alpha, x, y etc but I'm stucked with scale.

this.add.tween(this.playButton).to({ alpha: 1, y: 220 }, 500, Phaser.Easing.Back.Out, true, 1000); // working
this.add.tween(this.playButton).to({ scaleX: 2, scaleY: 2 }, 500, Phaser.Easing.Back.Out, true, 1000); // nope            this.add.tween(this.playButton).to({ scale: 2 }, 500, Phaser.Easing.Back.Out, true, 1000); // and again 
Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...