I want it so when you click the start button it changes to gameworld but it wont work here is the code for gameworld.
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class start here. * * @author (kevin welch) * @version (1.0) */ public class start extends Actor { /** * Act - do whatever the start wants to do. This method is called whenever * the 'Act' or 'Run' button gets pressed in the environment. */ public void clicked() { if (Greenfoot.mouseClicked(this)) { setWorld(gameworld); } } }