STEP 9: Now we can use the value stored in head_image to display the head of our mixed-up character!

  • In GRAPHICS, from drag a Sprite at Position to the bottom of your program.
  • Change the variable name from sprite to head.
  • Change the image label from "codester" to head_image.
  • Change the y-coordinate to 83. Notice that you get a different head every time you Run 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)