This site requires JavaScript, please enable it in your browser!
Greenfoot
Username
Password
Remember Me?
Sign Up, Lost Password
Activity
About
Documentation
Download
Discuss
Scenarios
Discussions
You need to login to take part
Current Discussions
Playing on scenarios
By GreenGoo, with 1 reply.
Replied to by Gevater_Tod4711, over 13 years ago:
If your jre is to old it's a security risk to run web applets. If you update the jre or the java plugin of your web browser it'll probably work.
Give enemies a target
By LuMC91, with 2 replies.
Last reply by LuMC91, over 13 years ago:
danpost! thank you very much!! this really helped me a lot!! :)
Keep score in new world
By davemib123, with 17 replies.
Last reply by davemib123, over 13 years ago:
nevermind, got that sorted :) @danpost got it working as you described with Goal.class. Thanks for the tip :)
Greya
By JetLennit, with 3 replies.
Last reply by JetLennit, over 13 years ago:
Makes sense, thank you
Help with greenfoot
By darokrithia, with 2 replies.
Last reply by danpost, over 13 years ago:
The main problem is in the line: <Code Omitted>'done = true' will set 'done' to 'true' and the 'if' condition will always return 'true'. What you want is to use the equality operator '==' (or no operator because the value of 'done' is already a boolean): <Code Omitted>Use of the list iterator 'for' could be used to drastically simplify the 'newPrey' method:
programming
By vikasvmads, with 2 replies.
Last reply by vikasvmads, over 13 years ago:
it is use the karel,,,i read that from standford academy lecture
Problems with Lists
By FlyerX, with 1 reply.
Replied to by Zamoht, over 13 years ago:
You have to import the List class first. In the top of your class you will see an import of Greenfoot. Under that place this: import java.util.List;
What is wrong with my code can someone please enlighten?
By qsapp.3, with 4 replies.
Last reply by danpost, over 13 years ago:
Line 41 is an 'end if' bracket and your next method is inside this method. To fix, remove line 45 and insert it at line 41 (or move the 'stop' method down outside the next closing bracket that is not part of the 'stop' method).
help "GreenfootSound"
By djsat, with no replies.
como accedo al paquete " " necesito añadir sonido, pausar, obtener, volumen y demás funcionalidades que dice tener este paquete pero no se como acceder a el, esta en el documento de "Greenfoot" pero no se como aplicarlo ayuda por favor a alguien que ya lo haya usado este es el link del paquete:
"GreenfootSound
file:///C:/Program%20Files/Greenfoot/doc/API/greenfoot/GreenfootSound.html
getting a tower to attack
By darkmist002, with 3 replies.
Last reply by darkmist002, over 13 years ago:
that fixed it, thanks. now i have to figure out how to get the tower to take away health from the spawned unit's class (that's where the health is located) so the attacks actually do damage. also have to figure out how to make it where clicking on the buttons for the towers lets you place them on the field where you want and then detracts minerals from the total minerals. scenario with tower code added: http://www.greenfoot.org/scenarios/8919
Collaboration
By DoctorProfessorYoshi, with no replies.
Does anyone want to collaborate on the Greenfoot dare? I need help and I can't figure it out. I'll upload the scenario so we can both figure it out. The DoctorProfessor is out!
Changing font in counter.class
By davemib123, with 3 replies.
Last reply by Gevater_Tod4711, over 13 years ago:
Maybe the class
java.awt.GraphicsEnvironment
can help you. Using the method GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableFontFamilyNames() you can get a list of all known Font familys. Also a list of all fonts is to be found there.
kill an enemy when jumped on
By davemib123, with 3 replies.
Last reply by davemib123, over 13 years ago:
Thanks, I've managed to get it working with this: <Code Omitted>
User Libraries
By miles7191, with 2 replies.
Last reply by miles7191, over 13 years ago:
Thank you very much! If you extract the compiled files from the jar to the project folder the application exports correctly.
Placing objects in the world
By DoctorProfessorYoshi, with 3 replies.
Last reply by DoctorProfessorYoshi, over 13 years ago:
No, it's basically for a game in which you place pools of poison. the world is stationary. The DoctorProfessor is out!
816
817
818
819
820
821
822
X