Danpost I am still having issues with the code you gave me. To give you a little more input on the way the score counter code looks, its like this, only its on a different world. But im trying to pass the same code to the Gameover world. here is the score counter code on the main Space world:
[code]private void addAsteroids(int count)
{
for(int i = 0; i < count; i++)
{
int x = Greenfoot.getRandomNumber(getWidth()/2);
int y = Greenfoot.getRandomNumber(getHeight()/2);
addObject(new Asteroid(), x, y);
}
}
private void addUFOs(int count)
{
for(int i = 0; i < count; i++)
{
int x = Greenfoot.getRandomNumber(getWidth()/2);
int y = Greenfoot.getRandomNumber(getHeight()/2);
addObject(new Asteroid(), x, y);
}
}[/code]
I have a question. On the Gameover screen, how do I get the score counter to carry over from the main Space world to the Gameover screen without resetting to "0"?
2014/10/24
Belt of Danger
2014/10/24
Belt of Danger
2014/10/24
Belt of Danger
2014/10/24
Belt of Danger
2014/10/10
Belt of Danger
2014/10/10
Belt of Danger