High score table

This forum is currently in read-only mode.
From the Asset Store
An educational game for Times Table. An easy to use template for developers to build larger games
  • It`s so clear from the title

    How to make a high score table???

  • Use a hashtable for example.

    HashTable.InsertKey("player name", player score - this should be a global/private variable)

    After that, you can loop through all of it's elements(if i'm correct it's sorting automatically)

    HashTable.ForEachElement:

    Text.SetText(Text.Text + NewLine + HashTable.CurrentKey + " " + HashTable.CurrentValue)

    Note: you probably wont get an answer if you dont want to think, nobody wants to create your stuff, but lots of us would like to help. There is a difference.

  • Also, many users don't use the search function or ask google.

    After 20 seconds of seeking I found a thread, where tulamide points to his game "verve".

    It might get boring that I point to my example Verve! all the time. But I really made it to cover as much as possible to show ways to realize things. Of course, Verve! also features a hiscore, complete with sorting algorithm and auto-save. Have a look at it, every single event in Verve! is extensively commented.

  • Keep in mind that "Verve!" doesn't load in Construct 2 (104). At least not here anyway.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Keep in mind that "Verve!" doesn't load in Construct 2 (104). At least not here anyway.You're right, it is a CC project. But on the other hand, this is the CC help forum ;)

  • Ah, so it is <img src="smileys/smiley9.gif" border="0" align="middle" />

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)