How do I switch hosts in multiplayer

Get help using Construct 2

Post » Wed Aug 19, 2015 3:06 pm

Hi. Im creating a battle-royal game and I wonder if I can swtich between hosts if a host disconnect.
The battle-royal mode has only one winner, so ocasionally if the first host dies he will be kicked
and a peer will become the new host. Is that possible? Thanks.
Posts: 2
Reputation: 179

Post » Wed Aug 19, 2015 9:03 pm

I think it's pretty clear in the tutorial that this is not possible. I've been playing with this myself and it seems the safest bet is going to be a dedicated host. To do that you are going to need a server that is always up, and have your host running the game on it all the time. This presents a few issues. Most notably what happens if someone else 'steals' the first connection and becomes host.
In the game I'm working on at the moment I get around that by changing the login screen in the multiplayer example to a full PHP login. If the intended host isn't logged in it just displays a 'waiting for server...' message.
Posts: 11
Reputation: 476

Return to How do I....?

Who is online

Users browsing this forum: bubito, Flat Office, zenox98 and 9 guests