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

2012/3/31

scores

tylers tylers

2012/3/31

#
how do you set the score on the score board???
nccb nccb

2012/3/31

#
Something along the lines of:
PlayerData p = PlayerData.getMyData();
if (p != null && latestScore > p.getScore())
{
    p.setScore(latestScore);
    p.store();
}
I suspect that the need to call store() is tripping up a few people, we'll be improving the PlayerData documentation a bit before the final release.
danpost danpost

2012/3/31

#
Where do I find the PlayerData documentation?
Busch2207 Busch2207

2012/3/31

#
Here: file:///C:/Program%20Files%20(x86)/Greenfoot/doc/API/index.html ;)
davmac davmac

2012/3/31

#
"Help" -> "Greenfoot Class Documentation"
You need to login to post a reply.