@richard @MakeCode @NotRichard I’ve encountered a bug saying I have an error but I cant find it please help me I don’t want to lose it
2 Likes
Hello @mcodes,
If you press the Toggle debug mode
button under the simulator, you can run your code to see where the error is:
Press the green play button until you hit the error:
Doing this you will see that the error is located in your
On Start
block:The error is telling us that the (player 1) sprite
is null, meaning it was never set. What we need is a set (player 1) sprite to
block.
When you add the new block, you can set the sprite to the asset you already created by clicking on My Assets
in the sprite editor:
Once you add the new block, your game should run! Make sure to create the sprite for player 2 as well .
3 Likes