In this project, the user starts by pressing 'A', which spawns the Fairy. The Fairy will introduce herself and ask for the user's name. Upon entering the name, the Fairy will dance and then call upon the Wizard. The Wizard will tell the user to enter a secret code. Depending on whether the user correctly types 'hocus pocus', a celebration from the Dragon will occur if they are correct, or the Dragon will say 'You failed' if the input is incorrect. This project emphasizes user interaction and basic conditional checks.
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!
1. Choose a Fairy sprite from the Scratch library or draw your own. 2. Add a backdrop to set the scene for the magical quest. 3. Use the 'when A key pressed' block to start the interaction. 4. Use the 'say' block to introduce the Fairy and ask for the user's name. 5. Use the 'ask' block to prompt the user to enter their name.
1. After the user inputs their name, use the 'say' block to greet them by name. 2. Create a simple dance animation by switching costumes or using motion blocks. 3. Use the 'repeat' block to loop the dance steps a few times.
1. Choose a Wizard sprite from the library or draw your own. 2. Use the 'broadcast' block to signal the Wizard to appear after the Fairy's dance. 3. Use the 'say' and 'ask' blocks to prompt the user to enter the secret code.
1. Choose a Dragon sprite from the library or draw your own. 2. Use an 'if-else' block to check if the user's input is 'hocus pocus'. 3. If correct, make the Dragon celebrate with a sound and animation. 4. If incorrect, make the Dragon say 'You failed'.
1. Use motion and sound blocks to create a celebration animation for the Dragon. 2. Use the 'switch costume' block to make the Dragon appear more dynamic. 3. Use the 'repeat' block to loop the celebration animation.
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.