Hi, I’ve been having a issue with my project, with the game screen going black and the program error null reading fields showing up. Anyone know how to help? Thanks
Here’s the link: https://makecode.com/_KdXWi4JDsFak
Hi! Looks like you forgot to put the loop code inside the loop block here…
You also have a problem here…
Where you are using the variable “abberdingus” in a place for a number or number variable. Because “abberdingus” is a sprite, not a number, you can’t use it there. If you want to use the position of that sprite, try using this block…
from the Sprites tab to get the X location of the sprite.
Hello, Ethan. I’m not quite sure but I believe at the bottom of the on start, the blocks that create the bush needs to be in the for element block. In the overlap block that spawns the bees, instead of putting the player variable in the x value, put the block “player x” This is because the variable for the player does not have a number assigned to it, and you need to tell Makecode exactly what number you want in the x value
1 Like