Create & Learn
Background

Try Bike Ride to the Library for fun Scratch Project!

Bike Ride to the Library

Platform: Scratch
Level: intermediate

In this project, students will create a scene where a dolphin rides a bike to the underwater library. Using sensing, the main dolphin can detect collisions with underwater plants or books while riding, and students will program variables to keep track of the duration of the ride. When the dolphin arrives at the library, it will use messaging to call out to its friends and start a friendly chat.

Save to Account
See All Projects

Backdrop And Sprite Images For The Project

background
background
1024 x 1024
Dolphins
Dolphins
1024 x 1024
Bike
Bike
1024 x 1024

Bike Ride to the Library: 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. Set up the underwater scene and characters.
  2. Program the dolphin to move and detect collisions.
  3. Create a variable to track the ride duration.
  4. Use messaging to signal arrival at the library.
  5. Program a friendly chat upon arrival.

Bike Ride to the Library 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!

1. Set up the underwater scene and characters.

Begin by choosing an underwater backdrop to set the scene for the dolphin's bike ride. Add the dolphin sprite and a bike sprite. Position the dolphin on the bike so it looks like it's riding. You can use the 'go to' block to set their starting position.

2. Program the dolphin to move and detect collisions.

Use the 'forever' loop to make the dolphin move continuously to the right. Use the 'if touching' block to detect collisions with underwater plants or books. When a collision is detected, you can make the dolphin say something or change its costume to show a reaction.

3. Create a variable to track the ride duration.

Create a variable called 'Ride Duration'. Use the 'change variable by' block inside a 'forever' loop to increase the duration as the dolphin moves. This will help keep track of how long the ride takes.

4. Use messaging to signal arrival at the library.

When the dolphin reaches a certain x-coordinate, use the 'broadcast message' block to send a message to its friends. This message can trigger other sprites to appear or start a conversation.

5. Program a friendly chat upon arrival.

Create a new sprite for the dolphin's friends. When they receive the 'Arrived' message, they can appear and start a conversation with the main dolphin using the 'say' block.

Common Potential Issues in Bike Ride to the Library Project

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

  • Ensure the dolphin and bike sprites are properly aligned so it looks like the dolphin is riding the bike.
  • Make sure the collision detection is accurate by testing with different obstacles to ensure the dolphin reacts appropriately.
  • Check that the 'Ride Duration' variable resets correctly each time the project is started.

Extra Challenges For Bike Ride to the Library

  • Add more obstacles for the dolphin to avoid, such as moving jellyfish or seaweed, to make the ride more challenging.
  • Create a scoring system where the dolphin earns points for avoiding obstacles and loses points for collisions.

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 Scratch coding, beginner to advanced levels
Accelerated Scratch
Free Intro
Accelerated Scratch
Grades 5-9
Fast-paced introduction to Scratch 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.