Bricktheworld Posted August 21, 2017 Share Posted August 21, 2017 Hello! I am trying to make a multiplayer third-person shooter using node.js, express, and socket.io. I was wondering what is the best way to send the rotation of a player from the client to the server and to the other clients. Thanks! Quote Link to comment Share on other sites More sharing options...
Jaskar Posted August 21, 2017 Share Posted August 21, 2017 Hi! I'm not a pro, but I think the best way is to send the rotation based on a timeout (maybe after checking that the user is active?). For big games, the information is sent to the server, that check if the informations are possible and correct (to avoid cheats), then broadcasted to the other players. Don't hesitate to share your future work with the community Quote Link to comment Share on other sites More sharing options...
Bricktheworld Posted August 21, 2017 Author Share Posted August 21, 2017 Thank you Jaskar, I have tried to do this but whenever I try to send the rotation, it is always 0. Is this because I am sending it as rotation.x, rotation.y, and rotation.z? Thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.