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

2013/12/18

Victory message?

tomw tomw

2013/12/18

#
Hi i was wondering were to start on a victory message as i am new to greenfoot and im not sure were to start if anyone can help me with that would be very helpful.
danpost danpost

2013/12/18

#
Your victory image can be either a world background image or an actor image. If using an actor: Create a 'Victory' actor class and set its image to your victory image. When game is won, remove all objects from the world, add a Victory actor to the center of the screen, and stop the scenario. If using a world: Create a 'Victory' world class and set its background image to your victory image. When game is won, set a new Victory world as the active world. Add a 'started' method to the 'Victory' class to stop the scenario (that sounded strange -- rolling eyes!).
You need to login to post a reply.