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

2019/6/27

how would i make a starting screen where you have to click start

Coltz Coltz

2019/6/27

#
i have no clue were to start on this?
Super_Hippo Super_Hippo

2019/6/27

#
Create a new world subclass and set it active. Add a button (Actor) to the world. Give the button an image showing that you have to click it to start the game. When it is clicked, set the Game world active.
//in Button class
public void act()
{
    if (Greenfoot.mousePressed(this))
    {
        Greenfoot.setWorld(new GameWorld());
    }
}
Coltz Coltz

2019/6/28

#
thank you
You need to login to post a reply.