setup extra copy

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

setup extra copy

Post by garcia1968 »

Referencing the reversi tutorial with my game(isaac), when I addTokenToBoard from the setup method, I get an extra copy token that never gets moved from the div 0x0 position. The extra copy seems to be created on the dojo.place method.

Thanks
User avatar
garcia1968
Posts: 24
Joined: 03 April 2013, 16:03

Re: setup extra copy

Post by garcia1968 »

Fixed, I was getting a token copy because in the setup routine in my game.js I had it within the below loop for both players

Code: Select all

            for( var player_id in gamedatas.players )
            {
Moving this to after that loop fixed that problem and using this.player_id allowed me to set the pieces for each corresponding player view.
Post Reply

Return to “Developers”