Multiplayer question

Get help using Construct 2

Post » Fri May 08, 2015 12:10 pm

Hello all,

I have quick doubt about multiplayer.

If say I had a multiplayer game which has around 10 peers including host. If the host disconnects for whatever reason, will the multiplayer session be lost for the rest of the peers?
B
16
S
4
Posts: 138
Reputation: 1,454

Post » Fri May 08, 2015 3:42 pm

That depends on how you set up your logic.

In one of my projects, I have it so that one of the peer automatically picks up the host position and the game can continue as it was.

The players simply reconnects to the room they were in and have the layout and state of things remain as they were.
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,562

Post » Fri May 08, 2015 5:41 pm

@lennaert

I was thinking of the same thing. I remember in one of the poker games I used to play, there were sometimes pauses during the gameplay whenever someone left. Maybe the game was changing hosts.

I guess each peer saves the room name in a variable, and if the host disconnects, they all reconnect to the room name from the variable.

Thanks for the reply.
B
16
S
4
Posts: 138
Reputation: 1,454

Post » Fri May 08, 2015 6:16 pm

Pandy wrote:@lennaert

I was thinking of the same thing. I remember in one of the poker games I used to play, there were sometimes pauses during the gameplay whenever someone left. Maybe the game was changing hosts.

I guess each peer saves the room name in a variable, and if the host disconnects, they all reconnect to the room name from the variable.

Thanks for the reply.



Exactly, and your welcome.
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,562


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 3 guests