tunepunk
Can you pass on the link to this photon plugin.
How is this plugin different from the regular multiplayer?.
Does it make one of the peers as the host if the original host leaves, or it just leaves the room unclosed, which means it'll only work in games where the multiplayer logic is running on the peers also, and not only the host.
It's quite different from the regular multiplayer as this one uses some sort of "cloud server". There are no hosts or peers per say. Every event sent from your client will pass through the Photon Cloud server, and are sent to the other clients. You don't have to set any host or anything like that. All the actions you do you just transmit them through the photon server, and anyone in the same room will see the updates and you will see theirs as you recieve their events while connected to the room. Even if you are the first one to join the room, you're not really the host, as you can exit any time, and rejoin the room with a new ID. Rooms will stay open as long as there are players inside.
I didn't check all the details yet, and only been messing with it for a week or so. I just downloaded the examples and learned from that, but it's pretty straight forward, and far easier to comprehend and use than the regular Multiplayer plugin. Basically works like this.
1. Connect
2. Join a room (If there is any open with available slots, otherwise there will be one created)
3. Player1 press move button. (player1 moves 6 pixels in that direction)
4. Send event to Photon server. (Event usually contain your ID and anything you want other users to get, like: Player1 move 6 pixels in that direction)
5. Photon sends the event containing the information to all other users in the room.
6. Recievers catch the event, and applies the on their end changes that are sent through the event. (Ex: Player1 move 6 pixels in this or that direction)
That's basically how it works. Without dedicated servers, and no hosts. It's GENIOUS!!!
https://www.scirra.com/forum/plugin-photon-cloud_t125222