Game Development Community

Synching player position

by Ian Omroth Hardingham · in Torque Game Engine · 12/14/2003 (8:20 am) · 3 replies

Hey everyone,

how exactly do the client and server sync positions? Does the client tell the server every so often where it actually is (rather than just sending a relative move) and the server updates?

Any help, as usual, is masssively appreciated.
Ian

#1
12/14/2003 (8:28 am)
Check out the networking section of the overview in the C++ engine reference.
#2
12/14/2003 (1:06 pm)
Look in player.cc and read the code for packUpdate() and unpackUpdate() to see how the player object ghosts itself so everyone knows where it is.
#3
12/14/2003 (1:17 pm)
Okay, thanks, I did both and it is now clearer.
Ian