# Null reading fields?

**URL:** <https://forum.makecode.com/t/null-reading-fields/31823>\
**Category:** Help\
**Created:** [November 20, 2024, 5:07am UTC](https://forum.makecode.com/t/null-reading-fields/31823 "2024-11-20T05:07:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ethan1](https://avatars.discourse-cdn.com/v4/letter/e/6bbea6/32.png) [@Ethan1](https://forum.makecode.com/u/Ethan1)\
**Post date:** [November 20, 2024, 5:07am UTC](https://forum.makecode.com/t/null-reading-fields/31823/1 "2024-11-20T05:07:46Z")

</div>

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](https://makecode.com/_KdXWi4JDsFak)

---

<div class="post-metadata">

**Author:** ![WoofWoof](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/woofwoof/32/32523_2.png) [@WoofWoof](https://forum.makecode.com/u/WoofWoof)\
**Post date:** [November 20, 2024, 5:56pm UTC](https://forum.makecode.com/t/null-reading-fields/31823/2 "2024-11-20T17:56:45Z")

</div>

Hi! Looks like you forgot to put the loop code inside the loop block here…

 ![IMG_6612](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/c/4/c4e36223d6c4693d73ea06f95eb4f600b1d1cdd3.jpeg)  
You also have a problem here…  
 ![IMG_6613](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/2/8/2842515670fb546d36c70af6d0564b2f95f4835b.jpeg)  
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…  
 ![IMG_6614](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/a/a/aa4af067fc02fb9f906b60798ae6c81ada699d83.jpeg)  
from the Sprites tab to get the X location of the sprite.

---

<div class="post-metadata">

**Author:** ![ineedhelp](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/ineedhelp/32/27191_2.png) [@ineedhelp](https://forum.makecode.com/u/ineedhelp)\
**Post date:** [November 20, 2024, 6:00pm UTC](https://forum.makecode.com/t/null-reading-fields/31823/3 "2024-11-20T18:00:25Z")

</div>

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

 ![Screenshot 2024-11-20 8.42.33 AM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/0/1/01e97dce516592121166edd35fbba358589ea613.png)
