question

jonathanrousseau33 avatar image
jonathanrousseau33 asked

How to get last week's leaderboard champion?

I have set some weekly leaderboards.

I'd like to get the previous week's champion and feature his name.

For example, if we are now on week 53, I'd like to feature the number 1 player of week 52.

What would be the best way to do this?

Thank you

Leaderboards and Statistics
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

Right now, the best way would be by using two statistics, and alternating between them (set a timestamp for the "start" in title data, so that you can use that to calculate which is "active" and which is "previous"). We're working on improvements to the statistics/leaderboard system now, which will we'll be making available post-GDC which will allow for more options for things like this, as well.

1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

jonathanrousseau33 avatar image jonathanrousseau33 commented ·

Great, I will keep an eye on these future updates. Thank you.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Error rendering WebPanel (widgets/consolidation-widget.ftl): org.hibernate.hql.internal.ast.QuerySyntaxException: AvailableConsolidation is not mapped [from AvailableConsolidation up where up.node = :node]