Hi!
I want to create a "Try again" button in my game which appears at the same time with my Game Over Screen.
If you click on the button , the game will be restart.
Can anyone help me? I don't know how it could work.
Thank you in advance,
Fifilein
1 2 3 4 5 6 7 | public void act(){ if (Greenfoot.mousePressed(this)) { Greenfoot.setWorld(new frogfly()); }} |