This site requires JavaScript, please enable it in your browser!
Greenfoot back
Penguin
Penguin wrote ...

2014/1/22

How do i add a winning screen

Penguin Penguin

2014/1/22

#
i have a game with a game over screen, what is the code to add a winner screen to my game?
S_Felix S_Felix

2014/1/22

#
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());
Penguin Penguin

2014/1/29

#
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.
jimboweb jimboweb

2014/2/3

#
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
smcgee smcgee

2016/2/23

#
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.
smcgee smcgee

2016/2/23

#
smcgee wrote...
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.
You need to login to post a reply.