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
2. (Group activity) Y Speed
To create a jump that feels better to play, we'll need to code a little bit of our own physics!
Starting point file for this challenge
Hint: show steps
Steps
1. Make a new variable, Y Speed
Hint: show details
2. What does Y Speed mean?
Hint: show details
3. Which coordinate gets changed by the Y Speed? Grab those blocks.
Hint: show details
Grab 2 "change Y by ___" blocks. Put the orange "Y Speed" bubble inside them.
Hint: show image
4. How would we make the character jump up? What about fall back down?
Hint: show details
Grab a "set __ to __" block and a "change __ by __" block. To go up, you'll want to SET to a positive number. To move down, you'll want to change by a negative number.
Hint: show image
5. Should the character fall forever?
Hint: show details
Grab the correct condition block, a light blue sensing block, and a "repeat until" block. Put the sensing block inside the "repeat until."
Hint: show image
6. Grab more blocks
Hint: show details
Thinking about these in mind, you'll want to grab these other blocks. This will help you in the next step.
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