Students cannot get their scoreboard to show up over the background (the soccer field). Can anyone see how to fix this?
Hi!
If you take a look inside the the draw function (a.k.a. draw loop), there is a call to the drawScore
function near the top. Further down, drawSprites
is called. This means that the score is being drawn first, then all the sprites, so the sprites are covering up the score. You need to draw the score after you draw the sprites so that the score will be on top.
By the way, the fact that the student used functions with reasonable names made this much easier to debug. Please congratulate your student on the clean coding conventions that made this program very easy to read!
Elizabeth
2 Likes
Thank you! He was happy to hear your compliment.
2 Likes