game auto starts to next player

Game development with Board Game Arena Studio
Post Reply
User avatar
garcia1968
Posts: 24
Joined: 03 April 2013, 16:03

game auto starts to next player

Post by garcia1968 »

Referencing the reversi tutorial, my game skips the first player and jumps to the next player. Not sure if/how the states.inc.php is causing this or some other code.
User avatar
Rudolf
Posts: 566
Joined: 24 December 2011, 23:04

Re: game auto starts to next player

Post by Rudolf »

it change to next player with nextstep:
// Go to next game state
$this->gamestate->nextState
in gamename.game.php

there is a click -> test if action is possible -> execute with a notify (notify is for all players to be sure they see something moving :) ) -> NexState
Post Reply

Return to “Developers”