Step 10: Ship Down Movement

Goal:


We want the ship to move down when we press the ‘s’ key.

Down on the computer is a change in the negative y direction.

Steps:

  1. From Control, place an IF block.
  2. From Sensing, place a key block in the IF block.
  3. Set the key to ‘s.’
  4. From Motion, place a change y by block and set it to -3.

Code: