so far this is all i have done for the code the Hero2 class has an image in another world of where the mouseClicked is being called
public void act()
{
if (Greenfoot.mouseClicked(this))
{
Greenfoot.setWorld(new City());
getWorld().removeObject(Hero2());
}
}
