Hey I thought It would be good to make a start menu for my game. at the moment I am wanting to make all commands more convenient. such as rather than press D to start the game, just left click.. But can't seem to get it to wrok.
So in the "if (Greenfoot.isKeyDown ("leftclick")) Greenfoot.setWorld(new Tower()); " code I am wanting it to switch to the game. The D key works but I am preferring a left click..
So if you're able to help me out I would appreciate it.
Thanks in advance.
public void act() { if (Greenfoot.isKeyDown("1")) Greenfoot.setWorld(new Help1()); if (Greenfoot.isKeyDown ("leftclick")) Greenfoot.setWorld(new Tower()); } }