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

Sniper's Comments

Back to Sniper's profile

That's what I did and it randomly split it off into 2 scenarios.....
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?
SniperSniper

2013/9/29

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(); } }
SniperSniper

2013/9/29

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?