[Solved]U.I Score System


#1

I want to build a score system that increases with time like in "Temple Run " or “Subway Surfers”
using nodes.
Any Help is appreciated.


#2

Try this

There is two properties “score” and “playing”.
Score will increase each frame and stop increase if “playing” is false.


#3

@MagicLord Thanks for the help, but this does not work.


#4

It was not tested, i will make a version i will test.


#5

did you attach the nodetree to something in the game and did you fill in the object values when you tested this. It should work just fine.


#6

@Monte_Drebenstedt I attached it to my player and also filled the values (player)


#7

@Monte_Drebenstedt and @MagicLord, I have got it myself.
Don’t know what was I doing wrong but found another way.


#8

Awesome. That is great.


#9

@Monte_Drebenstedt

First created a UI canvas with empty text object(No text), named TextScore.
Then attached it to the camera and this logic tree to the camera as well.
Hope this helps you in some way.
Yours sincerely,
Aqua