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

2013/1/30

Need some help

moobe moobe

2013/1/30

#
Hi, as you guys (hopefully) know, I've just finished my first game on Greenfoot. But now I'd like to create a main menu. Therefore I'd like to display animated labels. Also, it should be possible to enter a name so that there can be added a high score. Because I've just started with Greenfoot, I do not know how to do all those things. Copying code from others doesn't help, because I don't think that I will understand it very well then. So my question now is: Do you guys know some kind of tutorials with which I could learn that? The only thing I know is how to display text, but that's not really much, isn't it? -.-
-nic- -nic-

2013/1/30

#
Here SPower has these good tutorials to help you with with what you need
moobe moobe

2013/1/30

#
I think that was actually what I was looking for. Thank you very much!
moobe moobe

2013/1/30

#
Is there a tutorial for creating Highscores too? I haven't found it yet..
danpost danpost

2013/1/30

#
I do not think so. But, there is a support class you can import into your scenario called 'ScoreBoard'. After importing you can create a 'ScoreBoard' object and check it out. It probably will not appear too helpful until you supply some information to it. It uses the UserInfo class which is used to store information for each user in each scenario. You will need to have a username supplied in the Miscellaneous tab in Preferences on the Edit dropdown. Take a look at the UserInfo API in the Greenfoot package to see what is available to you there.
moobe moobe

2013/1/30

#
I think this score board looks quite interesting to me. But I'd like to have a text field, in which the player can write down his name at the beginning of the game and is listed then in the scoreboard. Is that possible?
Super_Hippo Super_Hippo

2013/1/30

#
Every player who is logged in here is automatically listed with their names.
danpost danpost

2013/1/30

#
The name of the user and the 'profile picture' of that user will be generated within the scoreboard. You should not have to do anything except create an instance of the scoreboard object.
moobe moobe

2013/1/31

#
OK, but that's too easy :D Isn't there a way to do it by own usernames so that I can play the game on my own without being logged in here.
You need to login to post a reply.