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).
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 ofwasSentAlready
or something like that would suffice.In order to test this: