Create a simple game where the shark moves left and right using arrow keys. When the shark touches the fish, the fish hides by switching to a hidden costume and plays a splash sound. The fish reappears after a short wait by switching back to its normal costume.
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!
Open Scratch and create a new project. Delete the cat sprite. Click the 'Choose a Sprite' button and add a Shark sprite and a Fish sprite from the library.
Select the Shark sprite. Add code so that when the right arrow is pressed, the shark moves right, and when the left arrow is pressed, the shark moves left.
Select the Fish sprite. Add code so that when the Fish touches the Shark, it switches to a hidden costume and plays a splash sound.
After the Fish hides and plays the sound, wait for 1 second, then switch back to the normal costume so the Fish reappears.
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.