You add another world class. Let's name it WScreen. If all conditions for winning the game are true this code should be executed:
Greenfoot.setWorld(new WScreen());
i have a world class and evrything where do i add the Greenfoot.setWorld(new WScreen()); ?
i have a gameover screen and it works with no code inside because i added the Greenfoot.setWorld(new gameoverScreen()); in timer and actor class.
I have an example with explanation of this on my website here:
http://mrstewartslessons.com/game_over_screen.html
And a video lesson about it here:
http://youtu.be/paESiHkp9mE
I used the instructions on your video to edit an entirely different scenario. Your instructions on this video were so good that it made no difference that I was working on an entirely different scenario.
I used the instructions on your video to edit an entirely different scenario. Your instructions on this video were so good that it made no difference that I was working on an entirely different scenario. I was able to add the Game Over text into the game I was working on.