Hey i am making a small multiplayer pong game. So i have 2 players connected to the server and i would want them to send their position to the server. But i have no idea how to do that. I mean i know what to do (pseudocode) but i just can't figure it out using multisync.
I was trying to do something like this:
Client 1 send 2 messages(NetPutInt() ) with the X and Y position of the sprite.
Client 2 sends 2 messages using (NetPutInt()) with the X and Y position of the sprite.
Server checks for messages, reads them and then sends the messages recived from Client 1 to Client 2, and from Client 2 to Client 1.
Client1 reads the values and positions the enemy sprite at that coordinate. Same for client 2.
But i just can't figure a way to do it using multysinc... Lets say i send those values.. how do i know from which client are those values? Can anyone give me an example of what should i do?