multiple rooms problem(activeRoomId)
multiple rooms problem(activeRoomId)
Halo, i have a problem when using multiple rooms joining. I've set the parameter "exitCurrentRoom" to false when i create the current room because i want to be in the Lobby at the same time. But after i leave the created game room i should be only in the Lobby room, because i use smartfox.leaveRoom(game room id). And somehow the smartfox still thinks that i'm in this game room which even doesn't exist already. When i use the smartfox.activeRoomId after the onRoomLeft event it gives me the number of the room that i already left and which doesn't exist already in the smartfox administration. Can you help me on this issue?
Hi,
this is not exactly a bug. The activeRoomId works okay when you join one room at a time. If you plan to use more than one room we recommend to keep track of your joined rooms in your own code. (we state this in our documentation)
In the next major release we're going to provide an easier way to handle multiple joins using a slightly different approach.
this is not exactly a bug. The activeRoomId works okay when you join one room at a time. If you plan to use more than one room we recommend to keep track of your joined rooms in your own code. (we state this in our documentation)
In the next major release we're going to provide an easier way to handle multiple joins using a slightly different approach.