In a student code when the background switches, it coves up the score and the time. How can the code be changed so that the score and time are on top of the background?
I assume you are talking about a GameLab project … without seeing the code, it is hard to say for sure, but usually this is a function of where the blocks are placed in relationship to each other. If you want the score to be on top, it should be created after the background is drawn (even if both are inside the draw loop).
That means if your background is a sprite, the text block showing the score should be placed after the drawSprites() block in the draw loop.
Hopefully this helps, but if not, you could have your student “share” the project and post us a link and we can look closer at it.
thanks and good luck!
Mike