O'Reilly logo

Scratch 2.0 Game Development HOTSHOT by Sergio van Pul, Jessica Chiang

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required