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

2015/9/3

How to make a Gamover Screen with score underneath???

Sceuby_Doo23 Sceuby_Doo23

2015/9/3

#
How can I make it when my bubble class is at the bottom of the world the Background changes and a picture appears(My gameover picture)?
Super_Hippo Super_Hippo

2015/9/3

#
if (bubble reaches bottom) //code is already in the Bubble act method
{
    //code to change background or world
}
You can either change the world with 'Greenfoot.setWorld(new GameOver());' with 'GameOver' being the name of the world class with the game over image. Or you can just change the background of the current world: 'getWorld().setBackground("your picture.png");'. If you want to remove all objects, so only the image is visible, you can use 'getWorld().removeObjects(null)' to remove all objects (don't use this before changing the background).
You need to login to post a reply.