Having a global script that handles the current game state etc.?
Hello,
Just got into Photon Networking after some struggling with UNet and I enjoy it so far. However, I have a question regarding handling the gameplay. Here's a simplified breakdown of what I want to achieve:
Could anyone enlighten me on the process I'd have to make/think of?
Thanks in advance.
Just got into Photon Networking after some struggling with UNet and I enjoy it so far. However, I have a question regarding handling the gameplay. Here's a simplified breakdown of what I want to achieve:
- Multiple users in a room
- Users can send input to the 'server' (single script somewhere that controls the game?)
- Server checks if it wants to process the input from the user
- Server moves an object
Could anyone enlighten me on the process I'd have to make/think of?
Thanks in advance.
0
Answers
-
Hi @notacompany
Thank you for choosing Photon!
First I invite you to go through PUN Basics Tutorial.
Then you should know one main difference between PUN and UNet: in UNet one client becomes host and others connect to it. in PUN all clients connect to dedicated servers.
The closest thing to the server/host concept in Photon is Master Client.0