I'm doing a game. When player gets to the other side of a map, the next map should load. I have a problem with calling a method which loads next map in act() because that method uses BufferedReader and I can't use "throws IOException" in act.
Greenfoot keeps writting "act() in MyWorld cannot override act() in greenfoot. World overriden method does not throw java.IOException"
If I write act without "throws IOException" greenfoot writes "unreported exception java.io.IOException; must be caught or declared to be thrown"
public void act() throws IOException{
if(player.X() > getWidth()){
loadNextMap();
}
}
