Hi,
I have a problem with multipleactiveplayerstate in my game. The problem I have is that the current player methods returns the player who played last in the other player browser. If I refresh the page everything is OK. In the state method, all I do is: In the "argMethod" I have tested some "CurrentPlayer" and "ActivePlayer" methods and the JavaScript receive the same values in both browsers tab and so in both "onEnteringState" and "onUpdateActionButtons". If I refresh the page, the "CurrentPlayer" methods returns the expected values. What am I missing. Do I need another state? Any help appreciated.
I have a problem with multipleactiveplayerstate in my game. The problem I have is that the current player methods returns the player who played last in the other player browser. If I refresh the page everything is OK. In the state method, all I do is:
Code: Select all
$this->gamestate->setAllPlayersMultiactive();