Forums

OverviewV-Play 2 Support (Qt 5) › Reset high score every month

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #12271

    Cho

    I save high score in local storage and report it to v-play game network so that user can report the highest score as soon as he gets online.

    If local storage has higher score, that score is reported to game network and vice versa.

    Now, I want to reset high score of all user every month and I want to reset both high score from local and network.

    How can I implement that? Thanks…

    #12305

    Alex
    V-Play Team

    Hi,

    First of all you don’t necessarily need to save your highscore locally, the gamenetwork components will cache a highscore locally until a device is online and can send it to the backend (offline support).

    For your use-case the best solution would be to use a new leaderboard for every month. You can automate that task by naming your leaderboards something like “<YEAR>-<MONTH>” and use that one for the reportScore function. With that approach you can also access past leaderboards at any time if you would ever need the ranking again.

    Hope this answers your question?

    Best,

    Alex

Viewing 2 posts - 1 through 2 (of 2 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support