samme Posted February 28, 2017 Share Posted February 28, 2017 (edited) 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(); Edited February 22, 2018 by samme `track` arguments changed in v1.0.0 Hipe, Mattia and mickeyren 3 Link to comment Share on other sites More sharing options...
Hipe Posted February 20, 2018 Share Posted February 20, 2018 Hi please I need help, I want to implement this in my animation sprite, how I do this, my Game in ready but I want this part. Link to comment Share on other sites More sharing options...
samme Posted February 20, 2018 Author Share Posted February 20, 2018 See the README and example code. Link to comment Share on other sites More sharing options...
jorbascrumps Posted February 21, 2018 Share Posted February 21, 2018 Will this be updated to work with v3? Link to comment Share on other sites More sharing options...
samme Posted February 21, 2018 Author Share Posted February 21, 2018 I'd like to. It will take a little while to figure it out. Phaser 3 emitters now have startFollow and stopFollow methods, much like this plugin's track and untrack, which is nice. Link to comment Share on other sites More sharing options...
Recommended Posts