Creating a goal

Now that the cat can explore the maze, it needs a challenge. It's a good idea to give it a specific goal to search for.

Prepare for lift off

We will draw a sprite that will be the goal for the cat to reach. What this goal will look like is not really important. The important thing is that it is exactly 20 x 20 pixels in size, so it will fit a tile segment perfectly.

I choose to represent the goal as a "magical" warp panel consisting of bright, blue rings. You can create the same or design your own goal sprite.

Once done, name the sprite as exit. This will give us the following screenshot:

Prepare for lift off

Engage thrusters

This sprite will have the same ...

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

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.