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:

  1. Click on the Choose sprite from the library icon.
  2. 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.

Engage thrusters

Let's first set up the broadcasts that will trigger the cat sprite to take proper actions. We need ...

Get Scratch 2.0 Game Development HOTSHOT now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.