quote=sophiaking]
i am not sure how to fix the bolded error
public void isDead()
{
String input = JOptionPane.showInputDialog ("Do you wish to continue?");
if ( [b]P1Counter.getValue()[/b] == 0 && input.equals ("yes") )
{
World myWorld = getWorld();
myWorld.removeObject(this);
play1Option2 p2= new play1Option2(cpcounter);
myWorld.addObject(p2, 519, 409);
Player1Option2AttackButton pb1 = new Player1Option2AttackButton(cpcounter);
myWorld.addObject(pb1, 271, 390);
} // spawns a new player for the computer to battle
if ( input.equals("no") && CPCounter.getValue() == 0 )
{
World myWorld = getWorld();
GameOver gameover = new GameOver();
myWorld.addObject(gameover, myWorld.getWidth()/2 , myWorld.getHeight()/2);
}// allows game over screen to appear
