Mike018 Posted November 11, 2016 Share Posted November 11, 2016 Yoyoing only seems to work when there is only one property for x & y. Is that intended or am I missing something? Link to comment Share on other sites More sharing options...
samme Posted November 11, 2016 Share Posted November 11, 2016 Example? Link to comment Share on other sites More sharing options...
Mike018 Posted November 11, 2016 Author Share Posted November 11, 2016 7 hours ago, samme said: Example? let flyAround = this.game.add.tween(this).to( { x: [ this.game.world.width - 100, 100, this.game.world.centerX, this.game.world.centerX ], y: [ this.game.world.centerY - 100, this.game.world.height - 100, 100, this.game.world.centerY ] }, 8000, Phaser.Easing.Quadratic.InOut, true, 0, -1, true ); The sprite will just disappear at the end of the first loop and start at the beginning without reversing. Link to comment Share on other sites More sharing options...
Recommended Posts