Microsoft MakeCode

A game with led


was tired so i tried making a game with micro:bit
if you have any tips comment
2 Likes

The game crashes when the A or B button is pressed because the sprite variable is null. Please assign a value to it before using it
Output from Chrome’s console:

I didn’t understand a thing but okay

Add this to the on start block: set sprite to and the value that you want to assign to it and is compatible with it’s type

1 Like