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
Question: Is there any API that can create a timer in Greenfoot?
By b321234, with 22 replies.
Last reply by b321234, almost 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, almost 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, almost 13 years ago:
cool, thanks
Simulation Won't Run
By redmobre, with 3 replies.
Last reply by Builderboy2005, almost 13 years ago:
Awesome ^^ Glad to help!
java.lang.NullPointerException Error
By DMCGames, with 5 replies.
Last reply by danpost, almost 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, almost 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, almost 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, almost 13 years ago:
Thanks i try it
Message Box
By minecraft15, with 1 reply.
Replied to by dordor, almost 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, almost 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, almost 13 years ago:
I guess not.
project..
By joekon23, with 3 replies.
Last reply by danpost, almost 13 years ago:
First off, what import statements are in your Canvas class? Secondly, you do not need to say 'java.lang.String' as 'String' is sufficient. Thirdly, why are you using 'isKeyDown', when you have already stored the keystroke in 'k'? Just say, 'if ("1".equals(k)) { ... }', etc. But before that, make sure that k is NOT 'null' !!! <Code Omitted>etc. Something else, 'background.fill(white);' is not a valid statement. You need to use 'background.setColor(C
Just an odd little bug :D.
By darkmist255, with 6 replies.
Last reply by darkmist255, almost 13 years ago:
Ahh, I've never touched on logarithms. Heard lots about them, but never actually know what they are or what they do :D.
Possible to implement a "Save Game" Feature?
By minecraft15, with 13 replies.
Last reply by darkmist255, almost 13 years ago:
Awesome! Good luck with it :D!
End loop
By Scaldren, with no replies.
figured it out... nvm.
1017
1018
1019
1020
1021
1022
1023
X