skipping all players

Game development with Board Game Arena Studio
Post Reply
User avatar
AxeCrazy
Posts: 19
Joined: 15 March 2014, 01:07

skipping all players

Post by AxeCrazy »

Well, i have a strange issue with the latest gaem i am trying to develop.
It can be played with 2 to 8 players.
i only just started the framework and somehow when the startplayer plays a card the state goes to nextplayer, which should active the next player and so on.
But when player 1 plays a card i get just as many nextplayer-> playCard state changes as the are players, without the other players becoming active, so it ends up with hte 1 player again?

Anyone had this problem ?
Must be very easy, but cannot find the glitch
User avatar
LeSteffen
Posts: 41
Joined: 13 July 2020, 15:32

Re: skipping all players

Post by LeSteffen »

Post some code please :-)
User avatar
AxeCrazy
Posts: 19
Joined: 15 March 2014, 01:07

Re: skipping all players

Post by AxeCrazy »

It really was to stupid :P
i added the $this->gamestate->nextState('nextPlayer');
call in the a for loop to update players
so, problems solved :lol:
Post Reply

Return to “Developers”