# U6 project debugging help

**URL:** <https://forum.code.org/t/u6-project-debugging-help/27362>\
**Category:** Coding and Debugging Help\
**Created:** [June 13, 2019, 7:58pm UTC](https://forum.code.org/t/u6-project-debugging-help/27362 "2019-06-13T19:58:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chadwicko](https://avatars.discourse-cdn.com/v4/letter/c/b782af/32.png) [@chadwicko](https://forum.code.org/u/chadwicko)\
**Post date:** [June 13, 2019, 7:58pm UTC](https://forum.code.org/t/u6-project-debugging-help/27362/1 "2019-06-13T19:58:09Z")

</div>

A student has some bug issues and is struggling. The idea is pretty great but she could use some help as she knows something is off. I cant find it either.

> **[Check out what I made](https://studio.code.org/projects/applab/FyNzoQ2n-7SEjasx9pHoOv6Uanvo3vDcP2eXFR4dAjg)**
>
> I wrote the code myself with Code.org

---

<div class="post-metadata">

**Author:** ![jadams1](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/jadams1/32/4835_2.png) [@jadams1](https://forum.code.org/u/jadams1)\
**Post date:** [June 14, 2019, 3:19pm UTC](https://forum.code.org/t/u6-project-debugging-help/27362/2 "2019-06-14T15:19:09Z")

</div>

I don’t have the maker app so I can’t test it but I’m guessing it has to do with the player\_y variable. player\_y was created on line 33 inside the movePlayer function so it makes it local to that function and can’t be used on lines 44 or 45.  
Have your student create the variable outside the function (maybe on line 25 after the rounds variable).

 ![Screenshot_2019-06-14%20Check%20out%20what%20I%20made](https://us1.discourse-cdn.com/flex016/uploads/codeorgforum/original/2X/c/c582689d07fbc4f202f6afd5247f806d1873c934.png)
