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

2012/12/11

Highscores UserInfo - Set username

Dytanoth Dytanoth

2012/12/11

#
Hello, I've been looking at the Helicopter Highscore scenario, and I like the way it works. I just have one question. The game I am creating will probably be played more often on 1 pc. I know you can set the Player name in the preferences menu or just ctrl+shift+p. But is it possible to create a popup window in-game. So that every player can submit their own name. And store it using the UserInfo.getMyInfo().store() The Data will be stored in an CSV file Thanks
nccb nccb

2012/12/11

#
I'm afraid the short answer is: no, there's no way to do that in the current version of Greenfoot.
Dytanoth Dytanoth

2012/12/11

#
Is there another way of doing this without the userinfo? Creating a file with the scores and read them?
danpost danpost

2012/12/11

#
No scenario uploaded onto the Greenfoot site can write a file (except the UserInfo file for that scenario); however, you can write a scenario (and create jar files) that will write to files (and read them) while run locally (on your home/office/school pc) if you have the privileges.
Dytanoth Dytanoth

2012/12/11

#
Is there a scenario online, as example?
You need to login to post a reply.