Forum Discussion

flarb's avatar
flarb
Partner
10 months ago

How to reset leaderboard / show scores for just the last round?

So I have this game where there are two leaderboards--one is the all time leaderboard, the other shows just the scores for the last round. However, there seems to be no way to programmatically reset the leaderboard? What I'd like to do is clear this leaderboard so that the scores I insert are the newest ones just for the previous round.

Granted--I suppose this wouldn't work since the var is persistent and people in other instances of this world would see the leaderboards and vice versa...they'd get overwritten.

I guess what I'd like to see is some a type of leaderboard that is just for the instance of this world, not globally for all instances? 

What are people using for this feature? Just rolling your own using the built in text gizmo?

3 Replies

  • Your analysis is correct. There is not a way to set a Leaderboard Per instance.

    I would highly recommend using Custom UI so players on Mobile can focus interact with it and it will cover their screen on press.

  • Yes you can definitely create your own leaderboard rather than using the gizmo, you can display it as text though a Custom UI will look better.

  • You are on the train of thought as you should not be using leaderboards and persistent variables for scores not used outside that instance. Historically, we have used Text Gizmos to create a leaderboard. Note that a text gizmo or any string can only be 1000 characters long including any text formatting tags.

    However, the current way you should attempt a scoreboard is using the custom UI which is far more versatile as you can also use images and animation, but it will require learning or an understanding of typescript. There is a custom UI tutorial available which includes simple examples of what is possible.