angeltrickz Posted March 23, 2018 Share Posted March 23, 2018 hello I am trying to move a sprite with Accelerate To Pointer and send with socekt to the other players. but I do not find ... any support? game.update = function(){ player.rotation = game.physics.arcade.moveToPointer(player, 60, game.input.activePointer, 500); Client.socket.emit('rotandpos',{x:player.x,y:player.y,r:player.rotation}); }; Link to comment Share on other sites More sharing options...
Recommended Posts