jdnichollsc Posted January 18, 2015 Share Posted January 18, 2015 Hi friends! One question... ¿How can I scale a sprite with a tween without changing the position with a different anchor at (0.5, 0.5)?var planatasmedio = this.game.add.sprite(0, this.game.height, 'planatasmedio');planatasmedio.anchor.setTo(0, 1);//CODE... move my image for example x = -500;game.add.tween(planatasmedio.scale).to({ x: 3, y: 3});//the position changes Thanks in advance! Regards, Nicholls Link to comment Share on other sites More sharing options...
Daniel Belohlavek Posted January 18, 2015 Share Posted January 18, 2015 You should be doing something like: game.add.tween(planatasmedio).to({width: N, height: N}); Link to comment Share on other sites More sharing options...
Recommended Posts