Create & Learn
Background

Try Shark Chasing Fish Game for fun Scratch Project!

Shark Chasing Fish Game

Platform: Scratch
Level: beginner

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.

Save to Account
See All Projects

Backdrop And Sprite Images For The Project

background
background
1024 x 1024
fish
fish
1024 x 1024
shark
shark
1024 x 1024

Shark Chasing Fish Game: Solution Outline

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.

  1. Add the Shark and Fish sprites to your project.
  2. Make the Shark move left and right with arrow keys.
  3. Make the Fish hide and play a sound when touched by the Shark.
  4. Make the Fish reappear after a short wait.

Shark Chasing Fish Game Sample Solutions

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!

Add the Shark and Fish sprites to your project.

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.

Make the Shark move left and right with arrow keys.

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.

Make the Fish hide and play a sound when touched by the Shark.

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.

Make the Fish reappear after a short wait.

After the Fish hides and plays the sound, wait for 1 second, then switch back to the normal costume so the Fish reappears.

Common Potential Issues in Shark Chasing Fish Game Project

It is common to have bugs in the code. Here are some of issues you might run into.

  • Forgetting to use the correct costume names for hiding and showing the Fish.
  • Not using 'forever' loops, so the Shark or Fish only responds once.
  • Not checking for touching the correct sprite (Shark) in the Fish code.

Extra Challenges For Shark Chasing Fish Game

  • Add a score that increases each time the Shark catches the Fish.
  • Make the Fish move around the screen to make the game more challenging.

Learn Scratch Coding Skills

Enroll your child in award-winning online Scratch coding classes led live by experts and designed by professionals from Google, Stanford, and MIT.

Scratch Junior
Scratch Junior
Grades K-2
Start coding with ScratchJr, and make interactive stories and games
Learn More
Scratch Ninja
Free Intro
Scratch Ninja
Grades 2-6
Code games and animations with beginner-friendly Scratch coding
Accelerated Scratch
Free Intro
Accelerated Scratch
Grades 5-9
Fast-paced introduction to coding: build games, stories, and animations
Intermediate Game Building with Scratch
Intermediate Game Building with Scratch
Grades 3-6
Code a new fun Scratch game every week

Explore More Fun Scratch Practice

The challenge continues: Enjoy even more Scratch tutorials dreamed up by other students or use your imagination to make your own!

backgroundTry The Tutorial
Develop My Own Idea

Find Best Classes For Your Child

Explore your child's grade level to find computer science classes and learning pathways that set your student up for success.