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:
- 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.
- We will change the color of the sprite to be a bit darker than the default bright pink.
- Go to the Costumes editor and choose a dark red ...
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.