I added coin play to our game and everything displays as it should for single player, but the self.game.credits does not get updated for multiplayer. I checked the variable is getting incremented/decremented but in the scoredisplay.py its not refreshing the footer layer.
Here is the bit of code I added to scoredisplay.py
# Common: Add the "BALL X ... FREE PLAY" footer.
common = dmd.TextLayer(128/2, 32-6, self.font_common, "center")
if self.game.tournament == True:
credit_str = 'COMPETITION'
#4-7-15 added coinplay and credits
if self.game.coinplay == 'Enabled':
credit_str = 'CREDITS ' + str(self.game.credits)
credit_str = 'FREE PLAY'
when another player is added, self.update_layer_4p() is called, another player score is added to the screen,
it decrements self.game.credits, but the credits on the display remain the same. So the BALL X footer is not getting updated.
credit_str is in the common layer. I tried to update the common layer before calling the update_layer_4p and the credits still remain unchanged.
What am I missing?