# There is a problem with the game I adapted that I can't fix

**URL:** <https://forum.makecode.com/t/there-is-a-problem-with-the-game-i-adapted-that-i-cant-fix/17000>\
**Category:** Help\
**Tags:** game\
**Created:** [December 21, 2022, 6:08pm UTC](https://forum.makecode.com/t/there-is-a-problem-with-the-game-i-adapted-that-i-cant-fix/17000 "2022-12-21T18:08:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aaaaaaa](https://avatars.discourse-cdn.com/v4/letter/a/54ee81/32.png) [@aaaaaaa](https://forum.makecode.com/u/aaaaaaa)\
**Post date:** [December 21, 2022, 6:08pm UTC](https://forum.makecode.com/t/there-is-a-problem-with-the-game-i-adapted-that-i-cant-fix/17000/1 "2022-12-21T18:08:51Z")

</div>

Hello everyone, I am a student from Taiwan. There is an assignment in the class. I want to rewrite the game I saw before, but I have encountered difficulties.

[https://arcade.makecode.com/S47093-60962-65671-10190](https://arcade.makecode.com/S47093-60962-65671-10190)

I want to make the background color change after accumulating a certain score, but I don’t know how to edit it. And now there is also a BUG, ​​why the hen will disappear after laying eggs.

Please come to a master to guide me, please!!!

---

<div class="post-metadata">

**Author:** ![Samsano](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/samsano/32/8307_2.png) [@Samsano](https://forum.makecode.com/u/Samsano)\
**Post date:** [April 24, 2023, 6:23pm UTC](https://forum.makecode.com/t/there-is-a-problem-with-the-game-i-adapted-that-i-cant-fix/17000/2 "2023-04-24T18:23:40Z")

</div>

Your problem was that it was checking if score = 100. But you did not take into account it going over 100 without it hitting 100.

Here is the fixed game:

> **[快樂雞媽媽 2](https://arcade.makecode.com/S87937-35484-13756-97445)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.
