This site requires JavaScript, please enable it in your browser!
Greenfoot back
Farfnir
Farfnir wrote ...

2018/2/19

How can I make one object change image after a different actor is clicked?

Farfnir Farfnir

2018/2/19

#
So, I have been trying to create a heartstone like card game. And I want the Mana count to increase after the end turn button is pressed. How would I go about doing this?
danpost danpost

2018/2/19

#
I would presume the button is in a world that contains the players and whose is currently at turn -- and the player has a mana counter. So, a method called 'endTurn' in the world class should suffice to add the mana and change the player which is at turn.
You need to login to post a reply.