Ooops
October 28, 2020, 05:42:37 AM

Author Topic: High Score Explanation  (Read 1236 times)

Offline chessish

  • Jr. Member
  • **
  • Posts: 33
Re: High Score Explanation
« Reply #30 on: February 11, 2020, 08:35:55 AM »
Well i tried your code today.
It does nothing with the score list.
It only shows scores and adds nothing...

Offline Derron

  • Hero Member
  • *****
  • Posts: 3236
Re: High Score Explanation
« Reply #31 on: February 11, 2020, 01:28:29 PM »
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:
Code: [Select]



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


Code: [Select]
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

Offline chessish

  • Jr. Member
  • **
  • Posts: 33
Re: High Score Explanation
« Reply #32 on: February 11, 2020, 03:23:54 PM »
I tried your code but it still only shows the list and does not add something.

I give up

Offline Derron

  • Hero Member
  • *****
  • Posts: 3236
Re: High Score Explanation
« Reply #33 on: February 11, 2020, 04:16:31 PM »
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

Offline chessish

  • Jr. Member
  • **
  • Posts: 33
Re: High Score Explanation
« Reply #34 on: February 11, 2020, 04:22:23 PM »
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

 

SimplePortal 2.3.6 © 2008-2014, SimplePortal