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

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.