I'm making a 2d multiplayer html5 game that needs client-side movement, collision etc.
Client sends active cursors to the server (w,a,s,d), server updates cursors on all clients and clients handles movement for each other. Every client sends server it's x,y every 100ms and server updates sender's x,y on all clients.
It works perfectly if player's latency is <1ms but even if player has 40ms latency everything seems like teleporting.
How can i make everything smooth without handling movement on the server? (like transformice.com do)
Sorry for my grammar.