Nature Returns

Unpredictable Fire

Fire can be very unpredictable. We’re going to simulate this unpredictability by making our fire move in random directions.

Select your Fire Sprite.
Add code so that our fire starts in a random location.

  • Add code so that your Fire Sprite moves to a random new position several times.
  • When the fire has finished burning through our bushes, we want it to burn out.
  • We will use the Hide block to hide the fire.
  • There is a second background on the Stage.
  • We want to change the background to give us the feeling that the forest is growing back.
  • After we hide the Fire sprite, let’s change the background.
  • Test your code – what happens when you test it twice? The background doesn’t change!
  • Let’s reset the backdrop at the beginning, when we press the green flag.