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

2021/12/27

Instruction Menu

tomzz tomzz

2021/12/27

#
How do I make an instructions page, where I tell the user about the game and how to play it before the game begins(before myWorld runs)?
danpost danpost

2021/12/27

#
Make the following your initial world. Set its background image to a title screen.
import greenfoot.*;

public class Header extends World
{
    public Header()
    {
        super(800, 600, 1);
    }
    
    public void started()
    {
        Greenfoot.setWorld(new Instructions());
    }
}
Have an Instructions world for this to go to when the scenario is started ("Run" button is clicked).
You need to login to post a reply.