Activity: Change Color and Position
I'M FINISHED WITH HOUR OF CODE!

STEP 6: Now let's learn about how we control specific parts of the commands in our program.

A parameter is a value in a command that controls how the command runs. One parameter is the string that you just changed. The other parameters control the placement and the color of the text. Use can use the comment as a guide.

  • Change the x coordinate to 0 and the y coordinate to -200. Change the color to "blue".

stage.set_background("park") sprite = codesters.Sprite("person3") sprite.glide_to(-100, 50) # sprite = codesters.Text("text", x, y, "color") text = codesters.Text("I went to the park!", 100, 200, "red")
Support