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

2014/4/25

Help With saving scoreS

CooliMC CooliMC

2014/4/25

#
Hey all I'm CooliMC and i want to ASK You if sb Would Explain me as easy as he can in steps how to Save for example Scores so that the next User of the scenario can der them.
danpost danpost

2014/4/25

#
What will you be saving? just one int value per user? Are you wanting to use the UserInfo storage for saving? or write and read files? What does this mean -- 'so that the next User of the scenario can der them'?
CooliMC CooliMC

2014/4/26

#
I mean that i can Save an int or a String so that the next user of the scenario can use this int or String ??
danpost danpost

2014/4/26

#
'the next user of the scenario' -- would that be the next user on the site or on your home system? Either way, what would be the determining factor in whose data to use. The highest valued one? the most recent one (if this, then more than the int must be saved)?
CooliMC CooliMC

2014/4/30

#
Sorry i mean the next User of the Scenario on the site like you did it in your scenarios !
danpost danpost

2014/4/30

#
Oh, you mean you want to create a list of user high scores that can be viewed by other users. There is a class called 'ScoreBoard' that you can import into your project. Use the menubar and select "Edit>Import class...", choose the 'ScoreBoard' class and click on the 'Import' button. Its comments shows how to create one. What it does not show is how to save the scores that it will display. This is included in the UserInfo class documentation.
CooliMC CooliMC

2014/5/7

#
ok thx for your help
You need to login to post a reply.