I'm making a main menu and I would like make it so there is a start button that when you hit it changes to the main screen. I've created the button as an actor and made it so I can change the screen but when I hit run it does not appear, I have to right click the class on the side and pick new StartButton() and then place it.
To summarise, I want the button to be on the screen when run is pressed.
Code about button:
public void act()
{
Actor StartButtton = new StartButton();
setImage(new GreenfootImage("StartButton.png"));
if(Greenfoot.mouseClicked(this)){
Greenfoot.setWorld(new BeeWorld());
}
}
