Jump to content

Tweens in Phaser


Recommended Posts

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.



            // 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 ................

Thaks !

Link to comment
Share on other sites


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...