Sending/receiving data

136 views
Skip to first unread message

NF Mynster

unread,
Oct 10, 2016, 12:09:49 PM10/10/16
to lidgren-network-gen3
Hello
I am really wondering why all the examples on Lingren often uses string commands to send data, is that really the most optimal way? If not, what would be the optimal way?

It often goes like this:
Client sends "movecommand" to server.
Server listens after input, and some switch or if statements checks what string command that was receiving, and then proceeds doing the server logic.

I'm asking because I'm wondering how to sync up movement from client to server and viceversa, and handling multiple players position and such.



Reply all
Reply to author
Forward
0 new messages