# Background not changing with score

**URL:** <https://forum.code.org/t/background-not-changing-with-score/40146>\
**Category:** Coding and Debugging Help\
**Tags:** csd-unit-3\
**Created:** [November 22, 2024, 4:32pm UTC](https://forum.code.org/t/background-not-changing-with-score/40146 "2024-11-22T16:32:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![langilla1](https://avatars.discourse-cdn.com/v4/letter/l/f475e1/32.png) [@langilla1](https://forum.code.org/u/langilla1)\
**Post date:** [November 22, 2024, 4:32pm UTC](https://forum.code.org/t/background-not-changing-with-score/40146/1 "2024-11-22T16:32:46Z")

</div>

We cannot figure out why the background is not changing when the score \>50

> **[Check out what I made](https://studio.code.org/projects/gamelab/74kQnAsmWOglqUjv6V113H-7jOpxfXBu4MmN1UFbQXM)**
>
> I wrote the code myself with Code.org

---

<div class="post-metadata">

**Author:** ![mwood](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/mwood/32/4941_2.png) [@mwood](https://forum.code.org/u/mwood)\
**Post date:** [November 22, 2024, 7:44pm UTC](https://forum.code.org/t/background-not-changing-with-score/40146/2 "2024-11-22T19:44:20Z")

</div>

@langilla1 ,

I must admit I was stumped for a minute, but then i caught the error …

Your student’s project uses two different sprites for drawing the background rather than using a single sprite and changing that single sprite’s animation (costume). So although the code does change the bg1 animation to the desired image, bg2 is still being drawn right after bg1 and is covering it up.

So, I would suggest deleting bg1 completely and only using bg2. Then, make sure bg2 changes costumes (instead of bg1) and you should be good to go.

If this doesn’t make sense, feel free to check back in!

Mike

---

<div class="post-metadata">

**Author:** ![langilla1](https://avatars.discourse-cdn.com/v4/letter/l/f475e1/32.png) [@langilla1](https://forum.code.org/u/langilla1)\
**Post date:** [November 25, 2024, 1:42pm UTC](https://forum.code.org/t/background-not-changing-with-score/40146/3 "2024-11-25T13:42:00Z")

</div>

Perfect-thank you very much!
