How to send input to server instead of it's new position?

Options
Hi,

How can I send all input to the server, which will convert your data to actual movement and send back your new position to everyone on the network. The advantage is that everything is synchronized on the server with PUN?

Thanks

Comments

  • vadim
    Options
    PUN works with Realtime Cloud Server which is not for game logic processing or state storage. The server simply broadcasts messages from one client to others. You may send inputs and get these inputs everywhere. Same for position. The logic should be run on clients.

    In theory, something like this could be done with Turnbased Cloud Server but this is not practical for PUN.
    Self-hosted Photon Server allows do anything including logic implementation but its development requires much more effort then conventional PUN usage.