Jump to content

phaser-track: follow things automatically


samme
 Share

Recommended Posts

Demo | Github | NPM

It lets a sprite or particle emitter automatically track (follow) a Pointer or Display Object. Try the demo!

obj.track(target, {
  // Default options:
  offsetX          : 0,
  offsetY          : 0,
  trackRotation    : false,
  rotateOffset     : false,
  disableBodyMoves : true
});
// …
obj.untrack();

screenshot.png

Edited by samme
`track` arguments changed in v1.0.0
Link to comment
Share on other sites

  • 11 months later...
 Share

  • Recently Browsing   0 members

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