I am trying to understand how a server communicates properly with the clients
Player1 Moves which means his new position needs to be updated on the server
Player2 Moves which means his new position needs to be updated on the server
Player1 screen needs to see the updated position of Player 2
Player2 screen needs to see the updated positon of player 1
My question is how do you make the server only send the clients that need updating and not its self,this is going to be become more trickyer with more clients so i am unsure how to implement updating of the clients screen correctly,what i mean is like
5 Players on the server
Player1 Moves
Player2 to 5 needs to see Player1 updated position
Player3 Moves
Player1,2,4,5 needs to see Players3 updated position
see what i am getting at?