Jump to content

help accelerate-to-pointer multiplayer socket


angeltrickz
 Share

Recommended Posts

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

 Share

  • Recently Browsing   0 members

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