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
Totally inept beginner
By jdemshki, with 10 replies.
Last reply by danpost, over 13 years ago:
What does your code look like so far?
How to check in the code if the scenario is in the greenfoot gallery?
By dordor, with 2 replies.
Last reply by danpost, over 13 years ago:
You could try creating and writing to a file, and then try to open and read the file and if it fails you are probably on the site.
Question: How do you jump and fall?
By PRprogram123, with 2 replies.
Last reply by danpost, over 13 years ago:
There are also a pair of short videos in the 'Documentation' area of Greenfoot that explain 'Running, Jumping & Falling (Part ? of 2)'.
Left and Right click booleans
By Gazzzah, with 4 replies.
Last reply by danpost, over 13 years ago:
Check out the discussion at
www.greenfoot.org/topics/220
. The basic code for the angle (and distance) is given there.
Question: Is there any API that can create a timer in Greenfoot?
By b321234, with 22 replies.
Last reply by b321234, over 13 years ago:
Guys, I thank you from the bottom of my heart. Really help me a lot
Quick Question
By DMCGames, with 7 replies.
Last reply by DMCGames, over 13 years ago:
Thanks for all the help, I got it to work correctly now.Thank you
Anyone know how to divide strings?
By kiarocks, with 2 replies.
Last reply by kiarocks, over 13 years ago:
cool, thanks
Simulation Won't Run
By redmobre, with 3 replies.
Last reply by Builderboy2005, over 13 years ago:
Awesome ^^ Glad to help!
java.lang.NullPointerException Error
By DMCGames, with 5 replies.
Last reply by danpost, over 13 years ago:
I simplified your 'healthcheck()' method as follows: <Code Omitted>Three simple statements; no 'if's; includes 25 as a possible return for gethealth(); allows a health range of (-24, 1025) .
Problem with mp3 loop playing
By dordor, with 15 replies.
Last reply by Builderboy2005, over 13 years ago:
We know what causes the bug, so for now it is a fixable problem :) No rush!
External libraries or classes
By jeffret, with 7 replies.
Last reply by jeffret, over 13 years ago:
giordanno92 wrote...
I'm not sure, but I think this is the same doubt that I was having with Eclipse <snip> I'm just answering this post cause I want help on that too :D...
giordanno92, the method described in this topic can kind of help you accomplish what you want. We've used Netbeans to create a utility library for managing high scores. (Okay, really it was to learn Java I/O, but it has a use.) It was easier to do in Netbeans and it helped my students to expand their understanding. Then we will link back to these classes, as described in this topic, and use them in Greenfoot
Level
By Dalle4, with 3 replies.
Last reply by Dalle4, over 13 years ago:
Thanks i try it
Message Box
By minecraft15, with 1 reply.
Replied to by dordor, over 13 years ago:
import javax.swing.JOptionPane and javax.swing.JInternalFrame. and put this code when you want to show the message: <Code Omitted>replace "Message content" with the message, and "Message title" with the title of the message.
Letter string
By suushi, with 14 replies.
Last reply by danpost, over 13 years ago:
Just add an instance boolean variable to the class -- call it something like 'fillObject'. <Code Omitted>Then, anytime the 'f' is pressed, change the value of 'fillObject' <Code Omitted>lastKeyPressed should be set up as a String variable and loaded with a non-null keystroke acquired through Greenfoot.getKey(). Finally, when drawing your objects: <Code Omitted>would fill the object if fillObject was true and not fill the object when false ('objectName' would be whate
Greenfoot and SoyLatte
By kiarocks, with 1 reply.
Replied to by kiarocks, over 13 years ago:
I guess not.
1021
1022
1023
1024
1025
1026
1027
X