Book Image

Scratch 2.0 Game Development Hotshot

Book Image

Scratch 2.0 Game Development Hotshot

Overview of this book

Table of Contents (18 chapters)
Scratch 2.0 Game Development HOTSHOT
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Creating an enemy


The next step is to add an enemy for the player to dodge or defeat. We will look for another suitable watery character to continue the underwater theme of this game. We will make some changes to the appearance of the character and then write some movement scripts for the character.

Prepare for lift off

Let's search for a suitable enemy for the diver character using the following steps:

  1. When we look through the library, we can find several interesting water creatures; crab, fish, shark, and starfish. Let's choose the starfish, because it can easily move in different directions without looking weird.

  2. We will change the color of the sprite to be a bit darker than the default bright pink.

  3. Go to the Costumes editor and choose a dark red color.

  4. Make sure that you view the image in Bitmap mode. This will make a big difference to the running speed of the game when we create many starfish. You can toggle this with the buttons in the lower-right corner of the editor.

  5. Select the Fill tool...