High score table

For questions about using Classic.

Post » Fri Jun 08, 2012 11:55 am

It`s so clear from the title
How to make a high score table???geniusrko2012-06-08 11:55:42
B
5
S
1
Posts: 20
Reputation: 590

Post » Mon Jun 11, 2012 12:59 pm

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.
B
10
S
6
G
3
Posts: 127
Reputation: 2,481

Post » Mon Jun 11, 2012 1:05 pm

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".

[QUOTE=Tulamide] 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.[/QUOTE] zyblade2012-06-11 13:06:39
B
24
S
9
G
2
Posts: 294
Reputation: 3,160

Post » Mon Oct 01, 2012 8:42 pm

Keep in mind that "Verve!" doesn't load in Construct 2 (104). At least not here anyway.
B
17
S
3
Posts: 26
Reputation: 1,972

Post » Tue Oct 02, 2012 12:53 pm

[QUOTE=UGS2012] Keep in mind that "Verve!" doesn't load in Construct 2 (104). At least not here anyway.[/QUOTE] You're right, it is a CC project. But on the other hand, this is the CC help forum ;)
Image
B
23
S
8
G
10
Posts: 1,820
Reputation: 8,242

Post » Thu Oct 04, 2012 9:38 pm

Ah, so it is
B
17
S
3
Posts: 26
Reputation: 1,972


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 4 guests