Sign in
Home
Online Classes
Instructors
Tutorials
☰
Register
Sign in
Online Classes
Instructors
Tutorials
1. Game set up
2. (Group activity) Y Speed (c)
3. Program a jump
4. (Group activity) An infinite game (c)
5. Design and clone obstacles
6. Program scrolling obstacles
7. Run into obstacles
8. Add a score
9. Design and clone collectibles
10. Program scrolling collectibles
11. (Optional) Multiple collectibles
12. (Optional) Scrolling background
Project 544: Infinite Runner
9. Design and clone collectibles
You'll need a new sprite to be a collectible that will add to your score, like a coin. It should clone itself more often than the obstacle does.
Starting point file for this challenge
Your goal
Hint: show steps
Steps
1. Pick a new sprite
Hint: show details
Click the blue cat face in the bottom right corner of Scratch to open up the sprite library.
Hint: show image
2. Duplicate the clone code from the obstacle over
Hint: show details
Go back into your obstacle's code. Find the piece of code that tells it to create clones. Click and drag this over your collectible sprite. Wait until the sprite wiggles! Then, let go. It should be copied into your other sprite now.
Hint: show image
3. Change some values
Hint: show details
Collectibles should spawn more often than the obstacles! Keep the delay between clones random, but make the numbers smaller.
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