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

Kartoffelbrot's Comments

Back to Kartoffelbrot's profile

To stop the game you should use Greenfoot.stop(). It's like pressing the run button again. To Count how many crabs are in the game you can use the getObjects method of the world. You can add this method to the world: public void stopWhenCrabsAreEaten(){ if(getObjects(Crab.class).size()==0) Greenfoot.stop(); } Then you have only to add the act method into the world, if you hadn't done this already. public void act(){ stopWhenCrabsAreEaten(); } I hope I was able to help you :)
It looks nice, but I don't know if it's better or not.
@ Gevater_Tod4711: Yes you are right, I am trying to fix that. @Jet_Lennit: Maybe your cables aren't updated. That happens if you connect an activated switch with a gate. I will fix that, but that's the only way I am able to explain your message. For me it works fine.
Hmm, what did you connect? Which input with which output?
I still can't see my mouse in the rgb-menu.
It is really nice to have a Story here. Maybe you can make you worlds unbordered, so that it seems, that the player falls out of the world, when he is falling down. Then you could make an auto reset, so that the player hasn't to press enter. Good job!
Oh my god!!!
Thanks for the offer. When I contine working on it I will do that.
Wow, much nicer than in Tiny Tank!