In this project, the player clicks on the Crab to make it move forward a certain distance. If the Crab reaches a specific point on the screen, it plays a victory sound and changes to a happy costume. Meanwhile, the Clownfish swims towards the goal, and the player must help the Crab reach the finish line first by clicking repeatedly. If the Clownfish touches the Crab, a reminder sound plays, prompting the player to keep clicking.
These are the high level steps to create this project. Try to create the project on your own first as much as possible, before checking the detailed solution samples below.
This section provides detailed, step-by-step instructions on how to build the project. There are many ways to create a project, so feel free to explore different approaches. Please note that these instructions are Al-generated, so errors may occur and the coding blocks may not map to Scratch exactly. But it should serve as very valuable references. Stay attentive as you follow along, and enjoy!
First, choose or draw a Crab and a Clownfish sprite from the Scratch library. Place the Crab on the left side of the stage and the Clownfish on the right side, both at the starting line. This sets up the race environment.
Use the 'when this sprite clicked' block to make the Crab move forward. Attach a 'move 10 steps' block to this event. This will make the Crab move a little bit each time it is clicked.
Add a condition to check if the Crab reaches a specific point on the screen (e.g., x position > 200). If it does, play a victory sound and switch to a happy costume using 'switch costume to'.
Use a 'forever' loop to make the Clownfish move towards the Crab continuously. Use 'point towards Crab' and 'move 2 steps' blocks to make it swim towards the Crab.
Use an 'if touching' block to check if the Clownfish touches the Crab. If it does, play a reminder sound to alert the player to keep clicking the Crab.
It is common to have bugs in the code. Here are some of issues you might run into.
Enroll your child in award-winning online Scratch coding classes led live by experts and designed by professionals from Google, Stanford, and MIT.
The challenge continues: Enjoy even more Scratch tutorials dreamed up by other students or use your imagination to make your own!
Explore your child's grade level to find computer science classes and learning pathways that set your student up for success.