Original Post
Hello, I am writing a java-based multiplayer game where players can move around and play with a ball. The communication between server and clients is done via UDP: first die client registers with the server and then it regulary sends the actions from the player to the server. so the server has all (position) data from all players. now I send the position data from all clients to all clients. but due to some delay sometimes the ball and player positions are not the same on all clients. generally this isn't a problem, but sometimes it leads to irritations. I hope, that you understand what I mean ;). Whats the best approach to synchronize clients to avoid these problems? Thanks,