So for right now i want it so that if i click on gaster it brings me to the next world(named Opening) just as a test, but it is not working so here is my code please help
/**
* Act - do whatever the Soul wants to do. This method is called whenever
* the 'Act' or 'Run' button gets pressed in the environment.
*/
public void act()
{
checkKeyPress();
if ( touchingObjectBlast() )
{
/**
* WIP
*/
}
if (Greenfoot.mouseClicked(Gaster.class))
{
Greenfoot.setWorld(new Opening());
}
}

