I have created SFSGameSettings object and set "notifyGameStarted" to true and when i m listening to this variable in OnRoomVariablesUpdate function like this :
Code: Select all
var changedVars:Array = e.params.changedVars as Array;
if(changedVars.indexOf(ReservedRoomVariables.RV_GAME_STARTED) != -1)
{
trace("game is started");
}so, when the limit reaches to 2 players its showing game started but when any of the player leaves the room or disconnected its also tracing game started why is that ? because now the room contains only one player so it should not have to come in this condition ...