States activeplayer/game.

Game development with Board Game Arena Studio
Post Reply
User avatar
Rudolf
Posts: 566
Joined: 24 December 2011, 23:04

States activeplayer/game.

Post by Rudolf »

Hi,
I noticed something : I cannot make a follow of two states with 'activeplayer' status, each time I need to insert a Game State between two activeplayer states to make it run....
I don"t understand why?
When I look on tuto games, it's also like that...
Am I right? why?
User avatar
pikiou
Posts: 389
Joined: 03 October 2011, 05:36

Re: States activeplayer/game.

Post by pikiou »

Really? I thought you could.
Since you have to be in a 'game' state to change the active player, I automatically add a 'game' state before every 'activeplayer' state to change the active player if needed, so I never noticed.
User avatar
Rudolf
Posts: 566
Joined: 24 December 2011, 23:04

Re: States activeplayer/game.

Post by Rudolf »

each try I did, the brower stays on a record of move in DB witout ending.
So I include each time a game transition (even I don"t change player on states).
User avatar
Quinarbre
Posts: 140
Joined: 15 December 2013, 23:26

Re: States activeplayer/game.

Post by Quinarbre »

If you make changes on the DB, maybe there's a problem because of the transactions system (just a wild guess).

Another idea (maybe it's not what you're looking for but still worth mentioning) : did you know you could change state purely on client side, using for instance

Code: Select all

		this.setClientState( statename, {
		    "description" : _('${actplayer} must play a card'),
    		    "descriptionmyturn" : _('${you} must play a card')
		} );
User avatar
Rudolf
Posts: 566
Joined: 24 December 2011, 23:04

Re: States activeplayer/game.

Post by Rudolf »

No Ididn't know, it's a good info :)
Post Reply

Return to “Developers”