Step 7 – Finishing the maze
When the sprite reaches the finish we need to celebrate. And maybe do something else.
![Code helper image](maze/m7end.png)
- You need to add some code inside your Forever block – add it right at the bottom
- Add another IF – THEN block with a Touching colour block – this time you want to use the dropper to pick the red line at the end of the maze
- Then add code inside the IF – THEN block to tell the game what to do
What will happen when you get to the end of the maze? It's up to you.
the sprite could say something
- the game could restart – maybe with the sprite a bit bigger (try a purple Change size by... block)
- you could go to a Game Over screen
you could show how long it took to complete the maze – to do this you’ll need to use the Timer in the light blue sensing set
The Timer is a little tricky to use. You'll need to use the reset timer block when you start the game...- the game could move to a new (harder) level – this will use a purple Switch backdrop to... block. You’ll also probably need to use a light orange When backdrop switches to... block to set a new starting position. You might find that a purple Set size to... or Change size by... block is a good idea as well
Or you could do something else. What would make the best game?