Synchronizing states and inputs
Use ghosts, commands, and RPCs to synchronize states and inputs between server and clients in your multiplayer game.
Topic | Description |
---|---|
Synchronization with ghosts | Use ghosts to synchronize and replicate states between server and clients in a consistent and customizable way. |
Communication with RPCs | Use remote procedure calls (RPCs) to communicate high-level game flow events and send one-off, non-predicted commands from the client to the server. |
Handling inputs with the command stream | Clients send a continuous command stream to the server when NetworkStreamConnection is tagged as in-game. This stream includes all inputs and acknowledgements of the last received snapshot. |