STEP 3: Let's make the sprite a little smaller and change the color of its say text.

  • Go to and drag in Set Size . Change the number in .set_size() from 0.5 to 0.4.
  • Drag out Set Say Color next. Change the color from "blue" to "yellow".
  • Next our sprite will tell the user the instructions! Click Run, Submit, and Next to move on.

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

# Program variables (DON'T DELETE!!!) block_speed = -6 # controls how fast the pipes move across the stage block_gap = 200 # controls the space between the top and bottom of each pipe block_interval = 1 # controls how often a new pipe appears gravity = 10 # controls how fast the sprite falls flappiness = 5 # controls how much the sprite moves up # Store and display score score = 0 score_text = codesters.Text("Score: " + str(score), 100, 200, "yellow") ######################################################################## # ADD CODE BELOW THIS LINE # ######################################################################## stage.set_background("space") stage.disable_all_walls() sprite = codesters.Sprite("dinosaur")
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)