Step 9: Ship Left Movement

Goal:


We want the ship to move left when we press the ‘a’ key.

Left on the computer is a change in the negative x 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 ‘a.’
  4. From Motion, place a change x by block and set it to -3.

Code: