Skip to content

Latest commit

 

History

History
11 lines (6 loc) · 732 Bytes

do_now_33.md

File metadata and controls

11 lines (6 loc) · 732 Bytes

Do Now 3.3 Jumping

Follow link to a project with a dog that can move left and right in response to arrow keys. Make the following modifications to the code:

  1. Program a walking animation for the dog. Hint: it has 2 costumes.

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

Key Press jump

  1. Implement gravity using an If block inside the forever loop. Hint: If not touching ground or platform color, go down by a small amount.