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

2013/1/20

PLEASEEE HELPPPP

SpritesKing SpritesKing

2013/1/20

#
Can anyone tell me how to make an intro screen? and ending screen if possible . i am using scores for my game. and health for my death. feel free to take a look at my unfinished game code in which i posted it. just click on me and you will see it. many thanks.
danpost danpost

2013/1/20

#
For your intro and ending screen, you can create seperate sub-classes of the World class. Add a trigger in the intro world to start the main world; and when health in zero in the main world, start the ending world, passing it the final score.
vonmeth vonmeth

2013/1/20

#
Edit: Danpost got it.
SpritesKing SpritesKing

2013/1/20

#
can you show me an example of code ?
danpost danpost

2013/1/20

#
My Crayon Babies scenario is a demonstration of how to work with multiple worlds. The MainWorld class is the one it sets up in before start-up. When 'Run' is first hit, it goes to the InfoWorld class which returns back to MainWorld when clicked on. When the MainWorld is then clicked on, InfoWorld again becomes the active world, before going to MenuWorld when clicked on this time. Depending on your choice in MenuWorld, either MainWorld or ImageWorld will become active if 'Quit' is not chosen. I programmed it so InfoWorld will only show before going to a world for the first time. Anyways, it has examples of going from world to world; passing information between world (a world object, in this case), creating text on the world background image (InfoWorld); and, creating a crude menu world (MenuWorld); and more. The InfoWorld is probably closest (though a little more involved than you would want because it deals with multiple sets of data) to what you generally want for both the intro and ending worlds.
You need to login to post a reply.