Jump to content

Kick back animation


Recommended Posts

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.

    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


  • Recently Browsing   0 members

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