I'm trying to find a good way to update an object's state. I'm not using SmartFox, Photon, or Unity's built-in networking because i couldn't get the results i wanted trough those. i decided to make my own server software using Java.
i already made connecting to servers, talking to players, and updating the players state. but updating an objects state isn't as easy as a players state.
what i have now:
if a player picks up or moves an object, it sends it new location to the server, and the server sends the new location to the other players, resulting in everybody seeing the player picking up the object.
but i don't think this is the right thing to do, because when another player picks it up, it either has to change its owner, or every player in the server constantly sends new object locations to the server which results in a mess of data being send to the server.
idk if someone already came across this problem because most people just use SmartFox or Unity's Build-in networking.
i hope someone can put me on the right path
thank you!
↧