Jump to content

Updating players positions using Node.js and Socket.io (Multiplayer)


KevinnFtw
 Share

Recommended Posts

On 4/22/2014 at 11:56 PM, SoWN said:

Also be careful: the client should not send it's x and y coordinates to the server.  It should only send "up button pressed", for example.

 

If the client sends x and y coordinates to the server it would be easy for the player to send arbitrary x and y coordinates, hacking your game.

I am wondering what the best way to do this is.. Send every key press from client? Send X,Y from client and have server check it to make sure it's legit? What is the best way to handle multiplayer movement with server and multiple clients to prevent cheating?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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