Original Post
Hello.
I'm creating a 2d sidescroller mmorpg and I wanted to ask how to program client-side prediction & correction?
Well especially the correction, because prediction is basically just running the physics code you have running on the server.
The server sends corrections about every two seconds. This messages contains X & Y positions and X & Y velocity and the Input like
left 0, right 1, jump 1...
Edit:
Is it ok that I do the same for other clients? So instead of sending snapshots of position and velocity, I only send input that has changed, and the local
client will predict where the other clients are moving to. The server sends corrections every 2-3 seconds.
Thanks a lot!
I'm creating a 2d sidescroller mmorpg and I wanted to ask how to program client-side prediction & correction?
Well especially the correction, because prediction is basically just running the physics code you have running on the server.
The server sends corrections about every two seconds. This messages contains X & Y positions and X & Y velocity and the Input like
left 0, right 1, jump 1...
Edit:
Is it ok that I do the same for other clients? So instead of sending snapshots of position and velocity, I only send input that has changed, and the local
client will predict where the other clients are moving to. The server sends corrections every 2-3 seconds.
Thanks a lot!