i try to make a little platform puzzle multiplayer game
I search how can i change a layout (for lvl) , with sync object (player)
Need to disconnect and reconnect , reloggin, rejoining ?? and change the room ?
i try lot of thing , no of my solutions work, but now i m out of idea !!
Thank for all !
(sorry for my bad english , french )
Are you using dedicated host or peer to peer? The solution might be different, depends on how you build your game.
In this case I would go with dedicated host for each level (each room) because this is the easier approach, by doing room-join/leave.
If you're doing peer-to-peer, changing layout during live game without disconnecting is not a good idea at all, since the host can destroy objects prematurely and cause some mayhem in your game. To mitigate this, it will require some serious event setup involving global objects, I think all are required to be global. Then there is the necessity of making certain object, certain IID to be invisible and disable collision what not. Tl;dr it's a nightmare. You need MOBA approach on level management.