STEP 12: We want the spaceship to be able to move in any direction.

  • From , drag Down Key, Left Key, and Right Key into your program.
  • Assign all of the indented commands inside each event to spaceship by changing the variable name sprite to spaceship.
  • Click Run and press the arrow keys to test your program.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)