My students sprites disappear when he tries to change the backgrounds. I know that the background may be covering them but we can’t figure out the fix.
Fun game! I was a little sad chocolate donuts make me lose a point .
Two quick things should fix the game.
First, the sprites disappear because the function call to draw the red background happens AFTER the sprites are drawn. Remember when a function is called, it runs the function, then the program goes back to exactly where the call occurred so the red background covers up the sprites. Just move the drawSprite to below the function call so the sprites are drawn after the background is drawn.
But then, the sky background always appears. So, inside the if statement you will need to make the sky sprite visible=false. That should do it.
Thank you! That was the fix!