Hi everyone, I created a little project a few days ago, now I wanted to export it as .JAR to share with some friends. However when I tested the Jar I was able to "play", but when the GameOver should have been reached (either <=0 HP or last enemy) the Game should (directly, got before a little transition) however, whenever the game should switch the World the game freezes / stopps. (With Controls you can see that the "play Button" returned to its beginning icon.
The Call I made was in the World class which was the active Playground.
I made previously (reason was the transition) a method which just catches the call if the game was won or lost:
It is necessary to send an int to the world since it is the score which shall be shown.
I hope you can help me and get slight Idea what my problem is.
with best regards
vesuv
public void ending(boolean won){
this.won = won;
finalEnding();
}
public void finalEnding(){
if(won==true){
Greenfoot.setWorld(new EndScore(getScore()));
}else{
Greenfoot.setWorld(new Lost(getScore()));
}}
--- more code ---
public int getScore(){
return this.score
}

