When I try to make a pause, the screen of the game only freezes and does not make a pause. I mean i want that the game wait and then keep working, not that the window don't respond.
I tried it with Thread.sleep(1000);
if (Var.tropfeny > 760) {
Var.tropfeny = -10;
Var.tropfenx = Var.n1;
Var.playerPoints = 0;
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
e.printStackTrace();
}
}