meghprkh Posted September 14, 2014 Share Posted September 14, 2014 How to glide a sprite to a specified position with tweening (if you have used scratch you will understand the choice of words) in Phaser? Link to comment Share on other sites More sharing options...
lewster32 Posted September 15, 2014 Share Posted September 15, 2014 Not sure about 'gliding' but you can tween an object to a specified position like so:// params are: properties to tween, time in ms, easing and auto-start tweenthis.game.add.tween(sprite).to({x: 100, y: 200}, 1000, Phaser.Easing.Quadratic.InOut, true); grinmonk 1 Link to comment Share on other sites More sharing options...
meghprkh Posted September 25, 2014 Author Share Posted September 25, 2014 Sorry,forgot to say thank you. I later saw this in the phaser example and then forgot about this post. lewster32 1 Link to comment Share on other sites More sharing options...
Recommended Posts