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
1 2 3 4 5 6 7 8 | public void act() { if (Greenfoot.mouseClicked( this )) { Greenfoot.setWorld( new City()); getWorld().removeObject(Hero2()); } } |