How do I create a seamless host transition?

0 favourites
  • 3 posts
From the Asset Store
25 Homemade seamless jazzy seamless backgrounds for 2d scrolling or platform games
  • Hi. I am looking for experienced users of the multiplayer plugin and want to ask if it is possible to create a "seamless host transition" if the host left. So can the other players/peers join a new host and continue the game where it was without starting over again?

    I want to use players as Hosts instead of a Server run by me so people in the same game region or zone (multiplayer instance) will join another player in the same region (up to a limit like 6 or 8). So you can see other players, play together, make quests and so on but if the host leaves the other players should stay together or at least not disconnect and lose progress. Is it possible to use something like a global "pause" (timescale) for all players when the host left and then continue at the same positions with what they where doing? As far as I know about the multiplayer plugin this could be possible but every player has to send his position when the host left to the new host, same for all enemies and objects to get them synced again and stay at the same position? Is this possible?

  • Edit : Misinterpreted the question.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Hi. I am looking for experienced users of the multiplayer plugin and want to ask if it is possible to create a "seamless host transition" if the host left. So can the other players/peers join a new host and continue the game where it was without starting over again?

    I want to use players as Hosts instead of a Server run by me so people in the same game region or zone (multiplayer instance) will join another player in the same region (up to a limit like 6 or 8). So you can see other players, play together, make quests and so on but if the host leaves the other players should stay together or at least not disconnect and lose progress. Is it possible to use something like a global "pause" (timescale) for all players when the host left and then continue at the same positions with what they where doing? As far as I know about the multiplayer plugin this could be possible but every player has to send his position when the host left to the new host, same for all enemies and objects to get them synced again and stay at the same position? Is this possible?

    I tried that, it is possible but there are some quirks. The events are quite elaborate and convoluted, in the end I manage to do it except there are transition stutter which most probably caused by the recreation of objects and sync, more data means more funny reload visuals. I don't see any way to mitigate this because it's a technological limitation. The transition phase can take from ~0.1 seconds up to 3 seconds based on my experience. That is depends how much connected peers are there and how much object there are in the host, not to mention that the host has to wait for all peer to get in before resuming.

    For it to be seamless, I doubt that it is possible unless you have a custom made events just to handle visual during the transition. For me, loading screen is pretty much acceptable and easier solution.

    Note that there is a bug that will make this mechanism very unstable.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)