So I have this problem where I am trying to change the main menu into a how to menu by changing the picture but it won't change, it just stays the main menu picture instead of changing into the how to picture, even though I have the pictures in the images folder of my scenario. Please help.
import greenfoot.*;
public class MainMenu extends Actor
{
private int menu = 0;
private GreenfootImage Main = new GreenfootImage("main.png");
private GreenfootImage How = new GreenfootImage("how.png");
public void act()
{
if(menu == 0)
{
setImage(Main);
}
if(Greenfoot.mouseClicked(HowToPlay.class))
{
menu = 1;
}
if(menu == 1)
{
setImage(How);
}
}
}

