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
8. Add a score
Make a new variable called "Score" and set it to 0 at the start of the game.
Starting point file for this challenge
Your goal
Hint: show steps
Steps
1. Make a score variable
Hint: show details
Go to your orange variables blocks, and click "Make a Variable." Call it score.
Hint: show image
2. Initialize it to 0
Hint: show details
Find a "when green flag clicked" block in your player, and directly underneath it put an orange "set __ to __ block." Set score to 0. Make sure this block is not accidentally in a forever loop!
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