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

2013/3/13

How do i end the game ?

1
2
danpost danpost

2013/3/14

#
Then, you were kinda close, but it should then be something like this:
if (getObjects(Slenderman.class).size()<6)
{
    livescounter--;
    if (livescounter == 0)
    {
        Greenfoot.stop();
        return;
    }
    else
    {
        addObject(new Slenderman(), getWidth()-1, Greenfoot.getRandomNumber(getHeight()));
    }
}
Nz-Tank Nz-Tank

2013/3/14

#
So then for the part where i need to add a new slenderman to the world ... How does that work if i already add 6 at the start of the world? do i need to define a specific coordinate? and will it replace the other Slendermen?
Nz-Tank Nz-Tank

2013/3/14

#
AHA! it worked! thank you so much, you just helped me on a 150 point project that wouldve lost some points without an end. Thank you so much i appreciate the help here, i really do
You need to login to post a reply.
1
2