STEP 12: Let's make a dice sprite! We will use the variable label_2 as our image label.

  • Go to and drag Sprite at Position to the bottom of your code.
  • Replace the image label "codester" with the variable label_2 (no quotes!).
  • Change the xy-coordinates from 0, 0 to 100, 50.

Notice that what the sprite says matches the dice that appears on stage!

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)