gamestate mismatch?
Posted: 08 July 2020, 16:20
I am developing 'Asgard'. At a certain point, if the player selects a game piece in a certain place (build temple slot), I transition to a 'game' state to determine what actions the player can take based on available resources and available temples. However, when I try to transition OUT of that game state, I get an error telling me that transition is not valid. But it tells me it is not valid in the 'select piece' state, not the state I am actually in.
With a bunch of debug code, it looks like the php (.game) is in the correct state for the transition, but the javascript (.js) still thinks it is in the old 'activeplayer' state. Is there something I need to do when transitioning states to bump the .js into the right state?
~cmgames
With a bunch of debug code, it looks like the php (.game) is in the correct state for the transition, but the javascript (.js) still thinks it is in the old 'activeplayer' state. Is there something I need to do when transitioning states to bump the .js into the right state?
~cmgames