Kiki Prottsman
Apr 25, 2024

--

This is a great question! You can treat each of those items like their own variables. So, if it were me, I'd create a function that resets only those items that I could call when you want to "reset" the game.

To do that, you'll want to use the "set" features in the "info" category:

info.setScore(0)

info.setLife(3)

info.startCountdown(10)

Hope that helps!

--

--

Kiki Prottsman
Kiki Prottsman

Written by Kiki Prottsman

Kiki is an author, educator, and the Director of Education for Microsoft MakeCode

No responses yet