I renamed the game and somehow it was duplicated, so please direct traffic here: http://www.greenfoot.org/scenarios/9425
I have a local highscore implemented but haven't gotten around to an online one for greenfoot.org since my time was focused on schoolwork. I'll see about adding one. What do you mean by too far range?
I've tried doing this in the Lives.class but I get errors compiling whether I put = null, = 0, != 1, etc.... What am I doing wrong?
public void act()
{
if (totalLives > 0)
{
if (getWorld().getObjects(Tux.class) != 1)
{
Tux tux = new Tux();
getWorld().addObject(tux, 300, 300);
}
}
else
{
Greenfoot.stop();
}
}
Could you post examples of that code? Sorry, I'm new.... Every way I've tried I get some kind of compiling error. Would I use getObjects(Tux.class) to find if he exists or?
2013/12/7
Snowboarding
2013/12/7
Snowboarding
2013/9/29
Tux
2013/9/29
Tux