You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 12, 2019. It is now read-only.
Currently, due to how I prevent the client from spamming the server with data even if the player doesn't move, when the game starts, the player's position is 0,0,0 until he moves.
This is done in Assets/Scripts/Game/ColyseusLocalPlayer.cs. A simple boolean flag of wasSentAlready or something like that would suffice.
In order to test this:
Open two clients
Join the lobby
Start the game
One client should move
That client should see the second client without him moving (and in turn sending his position).