Create & Learn
Background

Try Train and Airplane Money Exchange for fun Scratch Project!

Train and Airplane Money Exchange

Platform: Scratch
Level: intermediate

In this project, the Train sprite and Airplane sprite take turns giving money to each other using broadcasting messages. When the Train sprite broadcasts 'Give Money', the Airplane sprite receives the message and increases its money counter, then broadcasts back 'Thanks' to the Train. Both sprites show speech bubbles to reflect giving and receiving money. The Puppy sprite laughs whenever the money exchange happens, using simple 'say' blocks and sounds.

Save to Account
See All Projects

Backdrop And Sprite Images For The Project

background
background
1024 x 1024
Train
Train
1024 x 1024
Airplane
Airplane
1024 x 1024

Train and Airplane Money Exchange: 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 sprites and variables.
  2. Make the Train give money using broadcast messages.
  3. Airplane receives money and responds.
  4. Train responds to 'Thanks'.
  5. Puppy reacts to the exchange.

Train and Airplane Money Exchange 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 sprites and variables.

Add the Train, Airplane, and Puppy sprites to your project. Create a variable called 'Money' for each sprite (e.g., 'Train Money', 'Airplane Money'). Place the sprites on the stage.

2. Make the Train give money using broadcast messages.

When the green flag is clicked, the Train sprite will broadcast a message called 'Give Money'. This message will be received by the Airplane sprite.

3. Airplane receives money and responds.

When the Airplane sprite receives the 'Give Money' message, it increases its money variable by 1, shows a speech bubble, and broadcasts back 'Thanks' to the Train.

4. Train responds to 'Thanks'.

When the Train sprite receives the 'Thanks' message, it shows a speech bubble to acknowledge the thanks.

5. Puppy reacts to the exchange.

Whenever the 'Give Money' message is broadcast, the Puppy sprite laughs using a 'say' block and a sound effect. You can use the 'when I receive [Give Money]' block for this.

Common Potential Issues in Train and Airplane Money Exchange Project

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

  • Forgetting to create separate variables for Train and Airplane, which can cause confusion in tracking money.
  • Not using the correct broadcast messages, which can result in sprites not responding as expected.
  • Missing the 'when I receive' blocks, so sprites don't react to messages.

Extra Challenges For Train and Airplane Money Exchange

  • Add a button sprite that lets the user start another money exchange round between Train and Airplane.
  • Make the Airplane give money back to the Train after a few seconds, creating a loop of exchanges.

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.