dthrasher90 Posted May 1, 2017 Share Posted May 1, 2017 Is there away that I can move on sprite via tween and move another one towards its location while updating the x,y? So I'm thinking something like this Sprite1 tween,add('x: +500') Sprite2 moveTo ( sprite1x, sprite1y) Link to comment Share on other sites More sharing options...
SeelenGeier Posted May 1, 2017 Share Posted May 1, 2017 Would arcades moveToXY() be useful to you? https://photonstorm.github.io/phaser-ce/Phaser.Physics.Arcade.html#moveToXY Otherwise if you want to simply keep them together without animations, just set the x and y for the second sprite to that of the first. Link to comment Share on other sites More sharing options...
dthrasher90 Posted May 1, 2017 Author Share Posted May 1, 2017 How do you get move to object to work? I haven't had any success with it Link to comment Share on other sites More sharing options...
Recommended Posts