Jump to content

Sprites and Bodies


Recommended Posts

  • 2 weeks later...

i have a similar question. What is the best method to comand to a sprite to move to a (x,y) location.


i first use something like this: this.game.add.tween(this.sprite).to({ x:  x, y: y}, 10000, Phaser.Easing.Linear.None, true);


works but i would like to use the facing propertie of the body. Should a use Sprite.body.velocity.x / velocity.y  and test position on each update?


an other solution ? thanks

Link to comment
Share on other sites


  • Recently Browsing   0 members

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