Inside one of my classes ElevatorDoors there is a interger Elevatorframe
public int Elevatorframe = 1;
Inside of my world class MainMenu I am trying to change Elevatorframe back to 1 so the doors open again when a certain class dies.
I tried
int ElevatorFrame = ((ElevatorDoors)(getObjects(ElevatorDoors.class).get(0))).ElevatorFrame();
but could not get it to work
public void removeLives()
{
lives--;
showLives();
Akari akari = new Akari();
addObject(akari,67,200);
if(lives == 0 )
{
Greenfoot.setWorld(new GameOver());
}
}
