How do I create a score system?

Hi
I am currently working on a 2D version of Crossy Road, and so far, things have been great, except for one thing.
The score

Even though I have made a score-system before, I can’t seem to remember what I did right.


(Sorry for the bad quality)

I want to add a 10 on the 0 every time you cross the “goalline”, and then add on to 20, 30 etc.

But so far, the 0 turn into a 100 and thereafter dont changing.

Please help me, I have no idea what in doing.

Double click your variable and switch from text/string to number scene variable

And now instead of “10” you type 10

What you are doing now is using text variable and adding to string word 10
Imagine as adding ZX to 0 so result would be ZX0
In your case you added 10 to 0 so you get 10 0 or to be precise 100
You do not have number 100 over there
You have TEXT showing letter 1 and two letters 0

To be even more precise
You change string variable to number variable and there you put 10 instead of “10”

ANd in your text object you have “10”+
So it will always display 10 + whatever that variable is