qdrj Posted December 16, 2013 Share Posted December 16, 2013 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); // workingthis.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 More sharing options...
rich Posted December 16, 2013 Share Posted December 16, 2013 this.add.tween(this.playButton.scale).to({ x: 2, y: 2} .... GNUton, MichaelD, wipster and 3 others 6 Link to comment Share on other sites More sharing options...
qdrj Posted December 16, 2013 Author Share Posted December 16, 2013 Thanks a lot! Working like a charm. Link to comment Share on other sites More sharing options...
Recommended Posts