Hi, I’m developing an Isometric 2D online RPG with the SDL_Net library.
First I’d like to say that there is an authoritative server connecting all the clients, and making sure that there is no hacking going on etc.
I’ve things like registration, login, and some player synchronization done.
But I have a problem with the player synchronization I think?
When a player moves his character, turns just after moving, then stops moving - other connected players will see that character keep moving whilst the player who moved will see him/herself stopped. On the server, the player is on the coordinates on which the player stopped, but other clients simply see the player still moving, ignoring any and all obstacles in his/hers way.
Here’s a video to show the problem going on:
I’d love to show code, but I can’t show the entire code. If you need some code samples, please let me know - however I think theory on why this is happening will aid me.
I hope someone can help me clear up this problem.
Thanks in advance.