How Are Actice Players Handled?
Posted: 06 February 2025, 22:31
I finished the BGA Studio reversi tutorial, and there is one aspect that really confuses me.
When I run my game, if I try to place a piece when it is not my turn, there is a warning saying "It is not your turn". However, this was never coded in the tutorial. In fact, there is no distinction made in the front end at all between the active player. So my question is, how does BGA know that I am not the active player, and is there any way to modify this warning to day something other than "It is not your turn"? Also, is there a way to have multiple active players (for simultaneous games like Sushi Go).
My best guess is that when the client calls bgaPerformAction(), they receive this warning if they are not listed as the active player, but I am not sure if I am correct here.
When I run my game, if I try to place a piece when it is not my turn, there is a warning saying "It is not your turn". However, this was never coded in the tutorial. In fact, there is no distinction made in the front end at all between the active player. So my question is, how does BGA know that I am not the active player, and is there any way to modify this warning to day something other than "It is not your turn"? Also, is there a way to have multiple active players (for simultaneous games like Sushi Go).
My best guess is that when the client calls bgaPerformAction(), they receive this warning if they are not listed as the active player, but I am not sure if I am correct here.