Hi, I am trying to create a scoreboard, but I have ran into some troubles.
Basically my game involves two characters, fighting, where one dies. When a character dies, the game should reset, and a point given respectively to the surviving character.
Thing is, the way I figured I could make the check for this does not really work:
Any suggestions to how I can make this run is appreciated, thanks!
public void resetGame(){ if(getWorld().getObjects(Hedgehog.class) != null){ ++score1; } else{ ++score2; } scoreboard(); respawnCharacters(); }