I am brand new to teaching computer science. I am struggling with understanding what my students is doing wrong.
I can make the backgrounds change with the score change with simple backgrounds. but I am struggling o understand how to use a sprite background when doing it. This is what my student was trying to do and i can’t figure out what is wrong.
A few things to look at here. First of all, on line 1, you can’t create a sprite named background because background is a reserved word. That’s why the yellow warning box is there. Try a different name.
Then, your score is working, but you aren’t displaying it on top of the background. You will need to move the text you created below your background code so it will display the background first and then the text on top of the background.
Finally, trying to change the background to a color may not work if the existing background is already a sprite because the sprite is covering up the color. You would have to switch the order of some blocks to get that to work, but you should be able to do it the other way around first and then when that works, see if you can get it to work the other way around.
If you try fixing a few of those things and still have questions, reach back out and we’re happy to help further.