
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.
Backdrop And Sprite Images For The Project



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.
- Set up the sprites and variables.
- Make the Train give money using broadcast messages.
- Airplane receives money and responds.
- Train responds to 'Thanks'.
- 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!
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.
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.
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.
When the Train sprite receives the 'Thanks' message, it shows a speech bubble to acknowledge the thanks.
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.
Grades K-2
Start coding with ScratchJr, and make interactive stories and gamesGrades 2-6
Code games and animations with beginner-friendly Scratch codingGrades 5-9
Fast-paced introduction to coding: build games, stories, and animationsGrades 3-6
Code a new fun Scratch game every weekExplore 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!
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.