# How do I get score to work in game?

**URL:** <https://community.thunkable.com/t/how-do-i-get-score-to-work-in-game/242877>\
**Category:** Questions about Thunkable X\
**Tags:** beginner, tcanvas\
**Created:** [September 25, 2019, 2:22am UTC](https://community.thunkable.com/t/how-do-i-get-score-to-work-in-game/242877 "2019-09-25T02:22:56Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![debbie\_w](https://avatars.discourse-cdn.com/v4/letter/d/edb3f5/32.png) [@debbie\_w](https://community.thunkable.com/u/debbie_w)\
**Post date:** [September 25, 2019, 2:22am UTC](https://community.thunkable.com/t/how-do-i-get-score-to-work-in-game/242877/1 "2019-09-25T02:22:56Z")

</div>

Hi!

I cannot figure out why I can’t get the score to work in my game. The object of the game is to run around and try to grab cash falling from the sky. I have that working, but cannot get the score variable to work.

Also, I cannot seems to set the Cash Guy sprite to stay at 409 on the Y axis. Any help you can give me is very much appreciated.

[https://x.thunkable.com/projects/5d8972384760701c6c5a539f/3e86974d-b718-4175-809f-79f8b7609fab/blocks](https://x.thunkable.com/projects/5d8972384760701c6c5a539f/3e86974d-b718-4175-809f-79f8b7609fab/blocks)

Debbie

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [September 25, 2019, 5:10pm UTC](https://community.thunkable.com/t/how-do-i-get-score-to-work-in-game/242877/2 "2019-09-25T17:10:43Z")

</div>

hi,

> I can not get the score to work in my game

If you do not update the score on the screen, it will not be displayed.

Your project can be made a lot easier, but now Canvas very raw and beautiful do not work - does not work animation on a hidden sprite, not working movement of the sprite in the negative coordinate, on Android has some pull is enough sprite in a collision. On iOS more or less works well.

> Also, I cannot seems to set the Cash Guy sprite to stay at 409 on the Y axis. Any help you can give me is very much appreciated.

Yes, it seems there is no way to fix the Y-coordinate

---

<div class="post-metadata">

**Author:** ![debbie\_w](https://avatars.discourse-cdn.com/v4/letter/d/edb3f5/32.png) [@debbie\_w](https://community.thunkable.com/u/debbie_w)\
**Post date:** [September 25, 2019, 7:55pm UTC](https://community.thunkable.com/t/how-do-i-get-score-to-work-in-game/242877/3 "2019-09-25T19:55:16Z")

</div>

I do not understand what you mean by I have to update the variable score. I have set up my score the same way the 3 examples are set up in the documentation [https://docs.thunkable.com/gaming](https://docs.thunkable.com/gaming)

That’s what the “change app score by 1” block does. It just does not seem to work with this file for some reason. I have tried deleting it and putting it back in but cannot make it work.

Debbie

---

<div class="post-metadata">

**Author:** ![Mark](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mark/32/18133_2.png) [@Mark](https://community.thunkable.com/u/Mark)\
**Post date:** [September 25, 2019, 9:45pm UTC](https://community.thunkable.com/t/how-do-i-get-score-to-work-in-game/242877/4 "2019-09-25T21:45:50Z")

</div>

> [@actech](#):
>
> Your project can be made a lot easier, but now Canvas very raw and beautiful do not work - does not work animation on a hidden sprite, not working movement of the sprite in the negative coordinate, on Android has some pull is enough sprite in a collision.

@actech Could you please file bugs for each of the issues that you see in the Canvas/Sprite components? That’s the best way to get them fixed 😉

Thanks in advance.

-Mark

---

<div class="post-metadata">

**Author:** ![Mark](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mark/32/18133_2.png) [@Mark](https://community.thunkable.com/u/Mark)\
**Post date:** [September 25, 2019, 9:55pm UTC](https://community.thunkable.com/t/how-do-i-get-score-to-work-in-game/242877/5 "2019-09-25T21:55:22Z")

</div>

> [@debbie\_w](#):
>
> I do not understand what you mean by I have to update the variable score. I have set up my score the same way the 3 examples are set up in the documentation [Gaming Overview | Thunkable Docs](https://docs.thunkable.com/gaming)

Debbie,

Updating the value of your `Score` variable does not also update the `Text` property of the label component that displays the score. Each time that you update your `Score` variable you also need to update your label component’s `Text` property. You’ll see that that is what is done, for example, in the “Flappy Ball” game.

-Mark

P.S. It would be nice if the value of the label component’s `Text` property were able to be automatically updated when the `Score` variable changes. That’s a feature (we call it “binding”) that we have on our list!

---

<div class="post-metadata">

**Author:** ![debbie\_w](https://avatars.discourse-cdn.com/v4/letter/d/edb3f5/32.png) [@debbie\_w](https://community.thunkable.com/u/debbie_w)\
**Post date:** [September 25, 2019, 10:31pm UTC](https://community.thunkable.com/t/how-do-i-get-score-to-work-in-game/242877/6 "2019-09-25T22:31:20Z")

</div>

Oh, thank you! Thank you so much! Now I understand. I thought I had that covered with putting “set label4 text to app Score” on the when screen opens. Now I see I have to put it everywhere the Score variable changes. I do not have to do that on other programs that I have worked with, so I never would have thought of it. Thank you so much for taking the time to explain it to me. 😃

Debbie

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 12:08pm UTC](https://community.thunkable.com/t/how-do-i-get-score-to-work-in-game/242877/7 "2024-11-08T12:08:54Z")

</div>


