# Properly handling the game flow

**URL:** <https://community.coherence.io/t/properly-handling-the-game-flow/706>\
**Category:** Help\
**Created:** [June 12, 2025, 1:17pm UTC](https://community.coherence.io/t/properly-handling-the-game-flow/706 "2025-06-12T13:17:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fikus](https://avatars.discourse-cdn.com/v4/letter/f/6f9a4e/32.png) [@Fikus](https://community.coherence.io/u/Fikus)\
**Post date:** [June 12, 2025, 1:17pm UTC](https://community.coherence.io/t/properly-handling-the-game-flow/706/1 "2025-06-12T13:17:05Z")

</div>

Greets,

I decided to ask here as well just to get a clear picture.  
I am making a prototype with 1 “persistent” world & multiple minigames that are each hosted in their own rooms.  
Users enter the rooms from the world by standing together and then all of them are sent a command to join a separate room.  
each room is their own scene.  
Currently I have 1 main bridge in mainMenu that i use to connect to the world & then world has a regular bridge (i load the world scene by hooking up to the bridges OnConnected event).  
And for rooms I do the same. I disconnect from the world & connect to the room - through the main? bridge.

I am 100% this is wrong as I keep running into problems with the persistent coherence syncs in the world disabling themselves & some syncs in the rooms not working properly. What should be the correct flow for this use case?

PS: I have been reading here:

> **[Scene management | coherence Documentation](https://docs.coherence.io/manual/scenes)**

but i dont understand 100% if i sohuld keep changing the InstantiationScene or setting the bridge on each sync using CoherenceSync.BridgeResolve.

---

<div class="post-metadata">

**Author:** ![brit](https://dub1.discourse-cdn.com/flex017/user_avatar/community.coherence.io/brit/32/34_2.png) [@brit](https://community.coherence.io/u/brit)\
**Post date:** [June 13, 2025, 10:04am UTC](https://community.coherence.io/t/properly-handling-the-game-flow/706/2 "2025-06-13T10:04:32Z")

</div>

Are you attempting to “leave entities” behind in the world? You’ll have to relinquish authority of the entities using `AbandonAuthority()` otherwise they will be brought along. A client interacting with those entities will need to adopt these orphaned persistent entities.

Can you expand a little more how entities in the rooms are not functioning properly?

---

<div class="post-metadata">

**Author:** ![Fikus](https://avatars.discourse-cdn.com/v4/letter/f/6f9a4e/32.png) [@Fikus](https://community.coherence.io/u/Fikus)\
**Post date:** [June 16, 2025, 7:28am UTC](https://community.coherence.io/t/properly-handling-the-game-flow/706/3 "2025-06-16T07:28:44Z")

</div>

Hey, sorry for late reply.  
To describe the full flow:  
MainMenu scene holds the bridge, the bridge is tagged as mainBridge.  
when i connection is established (to the world) I connect the world scene.  
CoherenceBridge.onConnected.AddListener(LoadScene);  
Even here, it can already happen that some coherenceSyncs (similar to the trees / items in the demo) dont work as they are missing the bridge:

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/coherence/original/1X/593312ebb526f3544a6b7fa5a4be7a606342eb8d.png)

To continue to rooms - in the world the user can find points that send him to a room (I disconnect from the bridge for the world, and connect again to the room - not sure if this step is necessary).  
in the rooms same issue happens, if the first client drops, the persistent entities that are in the room get disabled with the message that the bridge is missing.

PS: I always have a 2nd scene active that serves as managers layer. I know coherence doesnt work with multiple scenes, but since that scene is never networked / has nothing networkable it shouldnt affect anything on paper.

Thanks

PS: on rooms I call abandon authority on clients that are disconnecting, and doing this, transfers it nicely.  
Expected would be for the syncs to automatically transfer authority thought right?

---

<div class="post-metadata">

**Author:** ![brit](https://dub1.discourse-cdn.com/flex017/user_avatar/community.coherence.io/brit/32/34_2.png) [@brit](https://community.coherence.io/u/brit)\
**Post date:** [June 16, 2025, 9:38am UTC](https://community.coherence.io/t/properly-handling-the-game-flow/706/4 "2025-06-16T09:38:33Z")

</div>

Do you have CoherenceBridges in those scenes you are transitioning to? There should be explicitl CoherenceBridges in those scenes and the should _not_ be marked as “main”. These tell teh main bridge (the original one you are connecting with) which scene to switch to in terms of networked entities

---

<div class="post-metadata">

**Author:** ![Fikus](https://avatars.discourse-cdn.com/v4/letter/f/6f9a4e/32.png) [@Fikus](https://community.coherence.io/u/Fikus)\
**Post date:** [June 16, 2025, 10:56am UTC](https://community.coherence.io/t/properly-handling-the-game-flow/706/5 "2025-06-16T10:56:33Z")

</div>

Yep. Forgot to add. Each scene has a coherence bridge NOT marked as main.  
other bridges:

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/coherence/original/1X/0833c6e0ff0e2b74f55b6b79ac14ce82b004b862.png)

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex017/uploads/coherence/original/1X/b3aa79eb9519fac7aad7eba18f15a1e8ce60f6e2.png) [@system](https://community.coherence.io/u/system)\
**Post date:** [September 14, 2025, 10:56am UTC](https://community.coherence.io/t/properly-handling-the-game-flow/706/6 "2025-09-14T10:56:35Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
