Skip to content

Latest commit

 

History

History
13 lines (7 loc) · 880 Bytes

do_now_33.md

File metadata and controls

13 lines (7 loc) · 880 Bytes

Jumping

  1. Open this starter project that can move left and right in response to arrow keys. Make the following modifications to the program:

  2. Save your project as DoNow3.3.

  3. A walking animation for the dog. Hint: it has 2 costumes.

  4. Add the script below to the forever block to make the dog jump. What is the problem with this jump script when you test it? How should jump work when the player presses the spacebar?

    Key Press jump

  5. Add gravity by making a custom motion block called "gravity" and adding it inside the forever loop. In the gravity custom block use an if statement to implement gravity. Hint: If not touching ground or platform color, go down by a small amount.