Sign in
Home
Online Classes
Instructors
Tutorials
☰
Register
Sign in
Online Classes
Instructors
Tutorials
1. Load Starter Kit
2. Randomly create clones of an arrow sprite
3. Arrow Movement
4. Gain points when the player hits the right key
5. Lose points if the player misses
6. Duplicate code for all three arrow sprites
7. Add music!
8. Missed Arrows (Optional)
9. Player Feedback (Optional)
10. Save and Share
Project 113: Finger Dancing
4. Gain points when the player hits the right key
The player should gain 2 points if they press the correct arrow key at the same time that clone is touching the Goodbar, then delete the clone.
Starting point file for this challenge
Your goal
Hint: show steps
Steps
1. Set up the code to check if two things are true at the same time
Hint: show details
Inside the forever loop created in step 3, add an "if __ then" block.
To check if two things are true at the same time you’ll need to use the "__ and __" block from the green "Operators" section.
Hint: show image
2. Check if the clone is touching the Goodbar and the correct arrow key is pressed
Hint: show details
Add light blue sensing blocks inside of the "__ and __" to check if the arrow key is pressed at the right time.
Hint: show image
3. Gain 2 points
Hint: show details
Change the score variable by 2.
Hint: show image
4. Delete the clone
Hint: show details
Once the game has registered the point gained, the clone is no longer necessary, so we can delete it.
Hint: show image
×
×
Provide your email address for immediate project access
Email
Check your email for instructions on how to create a full DA account