Help with student's game

Hi there, this student’s game is supposed to add 1 life when player overlaps the mushroom kind of life but instead it adds a random number of lives each time. I’ve tried adding in a pause block which seemed to work the first time, but when the game ends and restarts it’s back to adding a random number of lives. Any help n this is much appreciated.

Hi @jaturn68 ! Try following please:

change “place mushroom on top of random tile”:
image
to “place mushroom on top of value”:
image

The random life number comes from multi mushroom were placed in the same place.
The random placing may not cover the current “value” (red tile). And there are many red tiles in your map, so some mushroom could be choosen multi times, while some never.

Hope it helps. :slight_smile:

1 Like

That was it… Thank you so much!!!

1 Like