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

K_O_P's Comments

Back to K_O_P's profile

I got the medal 'Sunday Stroll'! :D Description: (Manage a stage, after a weapon detector has recognized you)
I published the source code, now you can see, how I made it.
Could you add an highscore-list?
This is amazing! Even if it's not ready, now!
Sorry, but I can't find the source code any more...
Really very nice! But adding a high score would it really make very great!
And I give up... -_- For now! ;)
BAHM! :D I beat your score! :D It's a bit close, but I beat it! ;)
K_O_PK_O_P

2013/5/17

You can save highscores with the UserInfo-class! Following code I copyed from the scenario http://www.greenfoot.org/scenarios/8385: UserInfo ui_=UserInfo.getMyInfo(); // gets the UserInfo of the current user if(ui_!=null) // Checks, if a UserInfo could be called { ui_.setScore(Greenfoot.getRandomNumber(10001)); // sets the Score ui_.store(); // saves the score } It's not very complicated!