Kalo Posted September 25, 2016 Share Posted September 25, 2016 So, I have a vehicle firing, and I want that vehicle to have some kick back every time it fires. I want a certain amount of force to be directed to the vehicle in the opposite direction it's firing at. I thought it would be something like the following, but it seems to be wrong. this.game.add.tween(this.player.body.position).to({ y: this.player.body.position.y - 10, x: this.player.body.position.x - 10 }, 0, Phaser.Easing.Linear.In, true, 0, 1000); Anyone have any ideas? Link to comment Share on other sites More sharing options...
trojanfoe Posted September 26, 2016 Share Posted September 26, 2016 That tween has a duration of 0 and is the same as applying the property changes directly. Link to comment Share on other sites More sharing options...
Recommended Posts