Hi! How do I make a Leaderboard using the ScoreBoard Actor? (It would be great if you could send me an exemple code regarding the filling of the leadeboard with names and points)
I realised that the Scoreboard Actor works only on the Greenfoot website.. And I need an offline Leaderboard which can store for eg in a .txt the previous scores of the player
The leaderboard works offline the same way. If you want to store more than the Highscore, you can use the 10 additional ints to store a total of 11 scores per user. If the score isn't very high, you can even split the int to store more than one value.
Maximum value for an integer: 2,147,483,647
So if the scores are always smaller than 1000, you could store three scores in it. If the highest reached scores would be 750, 400 and 230, then the saved int could look like this: 750,400,230
If you don't want to upload and use it on the Greenfoot website anyway, then you can create a TXT file or something similar and write to and read from it any way you want.