Creating a character
To make use of our generated maze, we will need to include a character the player can control. We'll use the default Scratch cat as the protagonist and add all the required control script to make it move through the maze.
Prepare for lift off
If we haven't left it on the stage from the start, we have to add the Scratch cat as a new sprite as shown in the following steps:
- Click on the Choose sprite from the library icon.
- Search for the Scratch cat option, select it, and click on OK.
The Scratch cat will be loaded for use in the game. Next, we will add a script to it to make it interactively controlled by the player.
Let's first set up the broadcasts that will trigger the cat sprite to take proper actions. We need ...