So I'm still working on that game, and I'm adding the level system. Here's the code:
It's in the ZombieWorld class
...(Constructor)
...(Prepare)
So I have the zombie.setImage("zombie-4.png"); here. But obviously it just doesn't change the image when I reach level 4. What's with that? Is it like... the Zombie zombie = new Zombie?? If so, how should I change the code? Thanks!!
Zombie zombie = new Zombie();
public void act(){
boolean gameLevelUpTo4 = gameLevelUpTo4();
if(gameLevelUpTo4){
gameLevel=4;
setBackground("rivets4.jpg");
zombie.setImage("zombie-4.png");
zombie.addZombieLevel();
player.grenadeNum=0;
}
}

