Getting "Score" to Show

[Posts in the debugging category need to have the following pieces of information included in order to help other teachers or our moderator team best help you. Feel free to delete everything in brackets before posting your request for debugging help.]

Link to the project or level: [replace with link to the curriculum or get the “Share” link to a project]
What I expect to happen: The word "Score: " to show up.
What actually happens: No text is showing
What I’ve tried:

  1. I’ve reviewed the code many times.
  2. I checked the sample code for the teacher in the lesson

In the function of where it shows the score, the student made the coordinates have 4 different values.

function showScore() {
  fill("black");
  textSize(30);
  text("Score: ",10, 30);
}

I have fixed it to the 2 values instead of 4.


I hope this has helped!

@jennifer.hemry,

On line 52, the last parameter of the text box is the height of the text box. 20 isn’t a large enough number for the text you are using, but when I change it to 100, the text box is large enough and the text displays!

Good luck!

Mike

1 Like