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

2012/10/6

Score board

Game/maniac Game/maniac

2012/10/6

#
How do you make a score board which displays other peoples nick names and scores on
-nic- -nic-

2012/10/6

#
to add the score board class go to: EDIT tab then IMPORT CLASS tab then press scoreboard slection thats the start
-nic- -nic-

2012/10/6

#
add this code to the world
addObject(new ScoreBoard(600, 600), getWidth() / 2, getHeight() / 2);//add the scoreboard
if (UserInfo.isStorageAvailable()) {//test to see if your data is avalable(logged in)
UserInfo myInfo = UserInfo.getMyInfo(); set myInfo to UserInfo
if (SCORE> myInfo.getScore()) //test to see if your score is better than your last
           {
             myInfo.setScore(SCORE);set the score to your info
             myInfo.store(); store the info
           }
i think i got it all btw replace SCORE with the varible of the score
Game/maniac Game/maniac

2012/10/6

#
thanks
Game/maniac Game/maniac

2012/10/8

#
You can re-like bounce time again because I re-uploaded it so the scores would be reset
You need to login to post a reply.