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

2012/5/4

Help..make a menu in first game and a link..

1
2
Andriyanto Andriyanto

2012/5/4

#
Hi Guys.. How i make a menu game? for example : play, credit etc.. and then how i make a link for it? help me..
MrDoomsday MrDoomsday

2012/5/5

#
First of all, create a new world for that. Now you can create a new actor with your "Start Game" Button as its image. Now it depends on how you want to navigate through the menu. The easiest way is to use the mouse. So copy that into the act() method of your "Start Game Actor Class":
public void act() 
    {
        if (Greenfoot.mouseClicked(this))
        {
            Greenfoot.setWorld(new myWorld());
        }
    }   
And replace "myWorld" with the name of the world you want the game to be started in.
Andriyanto Andriyanto

2012/5/10

#
ok..thank you..
Andriyanto Andriyanto

2012/5/19

#
sorry..u know how make a dialogue? i can't make a dialogue box too..
IsVarious IsVarious

2012/5/22

#
What exactly are you trying to do?
tylers tylers

2012/5/22

#
is this what you mean. http://www.greenfoot.org/scenarios/4771
Andriyanto Andriyanto

2012/5/25

#
is Various : i make a game adventure but i have problem with menu, after menu run..i want make a diologue for my chracter and another character in my game, you have example diaologue? tylers : yes i have look that but error in if (PlayerData.isStorageAvailable()), i dont understand to solve error
tylers tylers

2012/5/25

#
do you have greenfoot version 2.2.0
SPower SPower

2012/5/25

#
PlayerData is the old name of the class, UserInfo is the new name. Use that, and the error will disappear.
dlanni dlanni

2012/5/25

#
I substituted UserInfo for PlayerData and came up with the same error. I looked through the classes to see which one you might mean and there don't seem to be any classes or variables that would hold this info.
tylers tylers

2012/5/25

#
ive changed it myself all you need is download it again.
SPower SPower

2012/5/26

#
@dlanni You must have Greenfoot 2.2 or higher, otherwise the UserInfo class isn't there.
Andriyanto Andriyanto

2012/5/26

#
tylers : yes i have.. Spower : Ok thanks.. All : btw you can teach me about health bar? please give me simple example so iam so easy.. :) sorry if my english not good but i want study greenfoot and make a game..
danpost danpost

2012/5/26

#
There is a health bar/progress bar class that you can use by creating a 'Bar' class and copy/pasting the class code over into your scenario. It is located here.
Andriyanto Andriyanto

2012/5/26

#
Spower : still error in UserInfo me = UserInfo.getMyData(); // cannot fine symbol method mydata
There are more replies on the next page.
1
2