Hi all,
I am having an issue with gamedatas.playerorder in my JS' setup function.
In a regular game, playerorder is an array having player_id's for all players in the game in table order. I am using this to sit players in the table in correct order and build the game UI area accordingly.
But in spectator mode, the playerorder array just have one player id regardless of number of players in table. This causes the players to be in incoherent order for an spectator instead of consistenly move next turn to the player on the left of current player.
I already have a workaround for this but wanted to confirm this is an issue in BGA and not in my game. The workaround: Build a custom "tableorder" array in PHP getAllDatasForPlayer()
Has anybody suffered this issue?
Thx, Regards
I am having an issue with gamedatas.playerorder in my JS' setup function.
In a regular game, playerorder is an array having player_id's for all players in the game in table order. I am using this to sit players in the table in correct order and build the game UI area accordingly.
But in spectator mode, the playerorder array just have one player id regardless of number of players in table. This causes the players to be in incoherent order for an spectator instead of consistenly move next turn to the player on the left of current player.
I already have a workaround for this but wanted to confirm this is an issue in BGA and not in my game. The workaround: Build a custom "tableorder" array in PHP getAllDatasForPlayer()
Has anybody suffered this issue?
Thx, Regards