# Increase score not working

**URL:** <https://forum.code.org/t/increase-score-not-working/41744>\
**Category:** Coding and Debugging Help\
**Created:** [January 29, 2026, 1:57pm UTC](https://forum.code.org/t/increase-score-not-working/41744 "2026-01-29T13:57:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![scook1](https://avatars.discourse-cdn.com/v4/letter/s/f6c823/32.png) [@scook1](https://forum.code.org/u/scook1)\
**Post date:** [January 29, 2026, 1:57pm UTC](https://forum.code.org/t/increase-score-not-working/41744/1 "2026-01-29T13:57:44Z")

</div>

Hi, everyone:

I’m a very novice coding teacher, trying to help my students resolve an issue in which the score in only intermittently increasing. The score will only increase when the player sprite is at the bottom edge of the screen. Even then, it only works intermittently.

> **[Check out what I made](https://studio.code.org/projects/gamelab/64b73d1d-f792-4ffa-85d6-ef260bcb46fe)**
>
> I wrote the code myself with Code.org

I’ve tried searching the forums, but nothing I’ve found has helped solve this problem. Thanks in advance for any guidance you can offer.

Best regards,

Señor Cook

---

<div class="post-metadata">

**Author:** ![pluto](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/pluto/32/9141_2.png) [@pluto](https://forum.code.org/u/pluto)\
**Post date:** [January 29, 2026, 2:06pm UTC](https://forum.code.org/t/increase-score-not-working/41744/2 "2026-01-29T14:06:26Z")

</div>

> [@scook1](#):
>
> intermittently

Could you change the visibility access, so we can see the project?

---

<div class="post-metadata">

**Author:** ![scook1](https://avatars.discourse-cdn.com/v4/letter/s/f6c823/32.png) [@scook1](https://forum.code.org/u/scook1)\
**Post date:** [January 29, 2026, 2:53pm UTC](https://forum.code.org/t/increase-score-not-working/41744/3 "2026-01-29T14:53:03Z")

</div>

Hey, Pluto:

Thanks for your prompt reply. I’m such a novice that it took me a bit of time to even figure that out. You should now have access to the game.

Thanks again for your attention.

Best regards,

Señor Cook

---

<div class="post-metadata">

**Author:** ![pluto](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/pluto/32/9141_2.png) [@pluto](https://forum.code.org/u/pluto)\
**Post date:** [January 29, 2026, 3:08pm UTC](https://forum.code.org/t/increase-score-not-working/41744/4 "2026-01-29T15:08:16Z")

</div>

I don’t know what your exact issue is, but I think you want the score to go up whenever the player touches the falling sprites. It’s a simple fix.

All you have to do is move the collectItems() function below scorePoints(). The reasoning behind this is because collectItems() changes the position of the falling sprites. If it’s before scorePoints(), it’ll move first, which means the player will never actually touch the falling sprites in scorePoints(), therefore no points will be added.

```auto
scorePoints(); //scores point if touching, first priority
collectItems(); //moves falling sprite, second priority

```

---

<div class="post-metadata">

**Author:** ![scook1](https://avatars.discourse-cdn.com/v4/letter/s/f6c823/32.png) [@scook1](https://forum.code.org/u/scook1)\
**Post date:** [February 2, 2026, 7:21pm UTC](https://forum.code.org/t/increase-score-not-working/41744/5 "2026-02-02T19:21:25Z")

</div>

Thanks, Pluto. Your explanation was easy to follow and solved my issue straight away! Best regards to all!
