In this project, the user controls the Soccer Player character traveling by Train to a village. The user decides which train station to stop at by pressing keys. Messages are broadcasted to start the journey and arrival. Once in the village, the Fairy offers two exploration paths (farm or market), and users choose by pressing keys. The project uses messaging to transition scenes and simple motion to navigate characters.
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, Soccer Player, and Fairy sprites. Create or choose backgrounds for the train station, train interior, and village. Arrange the sprites on the correct starting backgrounds.
When the green flag is clicked, broadcast a message to start the journey. The Soccer Player appears on the train. Use key presses (e.g., '1' for Station A, '2' for Station B) to let the user choose where to stop. Broadcast a message for arrival at the chosen station.
When the train arrives at the village, switch the backdrop and show the Fairy sprite. The Fairy greets the Soccer Player and offers two paths: farm or market. Use key presses (e.g., 'F' for farm, 'M' for market) to let the user choose.
Depending on the user's choice, the Soccer Player moves to the farm or market. Use motion blocks for walking animation. Optionally, use clones to create animals at the farm or people at the market.
Create a variable (e.g., 'PathChosen') to store the user's choice. Use sensing blocks to detect if the Soccer Player touches a clone (e.g., animal or person) and display a message or score points.
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.