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.
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!
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.
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.