# Unit 3: Lesson 14 - Side Scroller Game

**URL:** <https://forum.code.org/t/unit-3-lesson-14-side-scroller-game/38131>\
**Category:** Coding and Debugging Help\
**Created:** [May 19, 2023, 6:17pm UTC](https://forum.code.org/t/unit-3-lesson-14-side-scroller-game/38131 "2023-05-19T18:17:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jennifer.hemry](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/jennifer.hemry/32/4710_2.png) [@jennifer.hemry](https://forum.code.org/u/jennifer.hemry)\
**Post date:** [May 19, 2023, 6:17pm UTC](https://forum.code.org/t/unit-3-lesson-14-side-scroller-game/38131/1 "2023-05-19T18:17:10Z")

</div>

**Link to the project or level:** [[replace with link to the curriculum or get the “Share” link to a project]](https://studio.code.org/projects/gamelab/nWn8r2gCzfPaLkHGLXkspz-AX8P8GXhY_R8di-IMLZY)  
**What I expect to happen:** The scene should change and a new background, coin, and player should appear when the score reaches 100.  
**What actually happens:** The error that comes up is with the score variable.  
**What I’ve tried:** We tried looking through the code for an error several times.

---

<div class="post-metadata">

**Author:** ![melynn](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/melynn/32/4925_2.png) [@melynn](https://forum.code.org/u/melynn)\
**Post date:** [May 19, 2023, 7:33pm UTC](https://forum.code.org/t/unit-3-lesson-14-side-scroller-game/38131/2 "2023-05-19T19:33:17Z")

</div>

Hi @jennifer.hemry,

I am not sure if the student was modifying the game when I took a look but there was no draw loop and only the circle and salmon background appeared. I didn’t see the score error because nothing was running;)

I made several changes including placing some functions in the draw loop so that things could get started, rearranging some function calls, etc. Take a [look at this remix](https://studio.code.org/projects/gamelab/cnBJgZ_PAJU4nuXEyLxSQNBoPIFtx0nzbWNj8D9TX0A) and see if your student can figure things out and why they are working. I feel like it might now be easier to figure out the conditional if statement that will go in the draw loop that will call function scene2() when the score is \>100.

Let us know if you have further questions  
~Michelle
