Student Code Question

Hey Team!

On this game Game Lab - Code.org

my students would like to have a sadface.visible=true statement work. Essentially, the sadface sprite symbolizes loss of the game, but also resetting the game if pressed. At about line 159, it is coded in to be part of that screen, but the sprite is not showing (the text and background it).

Thoughts? I’m sure I am missing something simple, but with 20 projects going at the same time, my head is spinning :rofl: :joy: :rofl:

So, funny outcome: My student decided to add text that says “Refresh your browser to play again” :rofl: Love it!

If he’s still looking at it, I think it has something to do with the sprites not being drawn in the gameOver function. I can confirm that the sadface is visible, but not drawn. Both situations have to exist.

Good luck!

Mike