STEP 2: let's set up a starting score and display the score on the stage.

  • Click LOGIC, then . Drag out Integer Variable. An integer is a whole number!
  • Change my_var to score and change the value from 25 to 0.
  • Drag out Variable Display. Change the display's name from my_display to score_display.
  • Change the information in .Display() to (score, -210, -210). Now our score shows on the stage!

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

stage.set_background("moon") sprite = codesters.Sprite("hedgehog", 0, -210)
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)