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

2014/10/2

How to make highscores

User_ User_

2014/10/2

#
I was wondering how I could implement highscores into my game offline is this possible?
NikZ NikZ

2014/10/2

#
UserInfo saves scores on a server, and also it will save scores in editor. But I think no, you can't do it offline.
Super_Hippo Super_Hippo

2014/10/2

#
You can do it offline, but not on the site. If you only play in Greenfoot itself, you can change the user name and it will create a 'storage.csv' when you store something. From this, you can get the names/scores/ints which you need to create your highscores. The 'storage.csv' is like the offline version of the file which is saved online and can be viewed through the 'get data' button in your own scenarios on the site. They are not connected, the 'storage.csv' is only for local use.
User_ User_

2014/10/2

#
Yes thats what I want but Where is the get data button exactly?
User_ User_

2014/10/2

#
and how would i make highscores with this storge.csv
danpost danpost

2014/10/2

#
User_ wrote...
Yes thats what I want but Where is the get data button exactly?
If you are logged in and go to your scenario, you will find it above your scenario window toward the right with 'delete scenario' and 'edit scenario'.
danpost danpost

2014/10/2

#
User_ wrote...
and how would i make highscores with this storge.csv
The offline storage spreadsheet works with the same code as the online storage database. It was created that way to simulate the online storage of data, so you could test it for online storage without have to upload it a bunch of times before getting it right. You can change the apparent user, offline, through 'Edit>Preferences -- Miscellaneous' via the menubar (or 'Ctrl+Shft+P'). BTW, offline, greenfoot will create the storage file in your scenario folder the moment any data is saved, if it does not yet exist.
User_ User_

2014/10/3

#
If it is the same as online what do you use instead of Userinfo
User_ User_

2014/10/3

#
And what would the code look like
danpost danpost

2014/10/3

#
User_ wrote...
If it is the same as online what do you use instead of Userinfo
You would not use anything other than UserInfo -- that is what 'it is the same as online' means. Why would you think you need to use something else?
User_ User_

2014/10/3

#
Ohhh I get it know
User_ User_

2014/10/3

#
so just follow other highscore tutorials?
You need to login to post a reply.