STEP 19: Phew! Building that maze took a long time. Let's now add a sprite to the stage that we can control.

  • In GRAPHICS, go to and drag in Sprite at Position to the bottom of main().
  • Change the second parameter from 0 to start_coordinates[0].
  • Then, change the third parameter from 0 to start_coordinates[1].
  • Now, our sprite is all set up! We just need to add a collision event and keyboard commands!

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)