High Score Explanation

Started by chessish, February 07, 2020, 10:08:46

Previous topic - Next topic

chessish

Well i tried your code today.
It does nothing with the score list.
It only shows scores and adds nothing...

Derron

#31
I did not touch that THighScores code ... as it seems to have been copied from somewhere (so most probably is working).


Edit: Append this to the code above:




local scene:MainMenuScene = new MainMenuScene
For local i:int = 0 to 100
scene.CurrentScore = i * 100
scene.EnteredText = "Ronny #" +i 
scene.FinishScoreEntry()
Next

For Local Count:Int = 0 To THighScores.SCORE_COUNT - 1
print scene.Scores.Names[count] + "  " + scene.Scores.Scores[count]
Next




Ronny #100  10000
Ronny #99  9900
Ronny #98  9800
Ronny #97  9700
Ronny #96  9600
Ronny #95  9500
Ronny #94  9400
Ronny #93  9300
Ronny #92  9200
Ronny #91  9100



works as planned.

bye
Ron

chessish

I tried your code but it still only shows the list and does not add something.

I give up

Derron

I took my code, added that part below, compiled and executed - and the console contained the highscore.

If your code contains more than what I posted, then this might have changed behaviour (eg you have a "end" command before mine or so).



bye
Ron

chessish

Well thank you a lot for your help and hard work
But i will give up.
This makes me sick :(
All the struggle for nothing. I will go on
With the single score


Bye

Chris