This site requires JavaScript, please enable it in your browser!
Greenfoot back
ORSODO
ORSODO wrote ...

2019/5/14

ScoreBoard

ORSODO ORSODO

2019/5/14

#
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)
Super_Hippo Super_Hippo

2019/5/14

#
What did you try so far?
ORSODO ORSODO

2019/5/15

#
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
Super_Hippo Super_Hippo

2019/5/15

#
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.
You need to login to post a reply.