Author |
Message |
BigBear
|
Posted: Fri Feb 08, 2008 7:45 pm Post subject: Highscore Ranking |
|
|
I have a highscore system in my game that writes to a text file. Then there is a procedure to view the contents of this text file so the highscore system works but I would like to know how to Rank the highscores like the person who gets score of 100 should be ahead of the person who gets 10. But currently it just goes in order so if you get score of 10 then 100 the entry with score of 10 appears on top. |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Tony
![](http://wiki.compsci.ca/images/f/f4/OniTony.gif)
|
|
|
|
![](images/spacer.gif) |
BigBear
|
Posted: Fri Feb 08, 2008 8:29 pm Post subject: Re: Highscore Ranking |
|
|
Ok yes I would like to sort my highscores from the way I am doing it how do you suggest I go about doing it. |
|
|
|
|
![](images/spacer.gif) |
Jestar
![](http://compsci.ca/v3/uploads/user_avatars/32413159947deec5748c79.jpg)
|
Posted: Fri Feb 08, 2008 8:43 pm Post subject: RE:Highscore Ranking |
|
|
go to the tutorial section and look up sorting, there are lots of different ways to do it. |
|
|
|
|
![](images/spacer.gif) |
|