Appolos Posted August 31, 2018 Share Posted August 31, 2018 Hello ! Can anybody help with Tween in Phaser. I need rewrite adding tween to game from Phaser 3 to Phaser 2. I have this code, how I can write it on Phaser 2. this.tweens.add({ // adding the knife to tween targets targets: [this.knife], // y destination y: this.target.y + this.target.width / 2, // tween duration duration: gameOptions.throwSpeed, // callback scope callbackScope: this, // function to be executed once the tween has been completed onComplete: function(tween){ some function ................ break; } }); Thaks ! Link to comment Share on other sites More sharing options...
samme Posted August 31, 2018 Share Posted August 31, 2018 https://photonstorm.github.io/phaser-ce/Phaser.Tween.html Link to comment Share on other sites More sharing options...
Recommended Posts