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
Anyone know how to divide strings?
By kiarocks, with 2 replies.
Last reply by kiarocks, about 13 years ago:
cool, thanks
Simulation Won't Run
By redmobre, with 3 replies.
Last reply by Builderboy2005, about 13 years ago:
Awesome ^^ Glad to help!
java.lang.NullPointerException Error
By DMCGames, with 5 replies.
Last reply by danpost, about 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, about 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, about 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, about 13 years ago:
Thanks i try it
Message Box
By minecraft15, with 1 reply.
Replied to by dordor, about 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, about 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, about 13 years ago:
I guess not.
project..
By joekon23, with 3 replies.
Last reply by danpost, about 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, about 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, about 13 years ago:
Awesome! Good luck with it :D!
End loop
By Scaldren, with no replies.
figured it out... nvm.
Urgent Project
By jtscofield, with 7 replies.
Last reply by jtscofield, about 13 years ago:
alright thanks
Any idea how to make a "Toggle" button?
By Tym5, with no replies.
I need to assign a key a "toggle" feature, so when it is pressed I will press another button and whatever shape is assigned to the second key fills in with a solid color. Any Ideas? I am not looking for answers (I like doing all the problem solving on my own) just ideas or someone to point me in the right direction.
1018
1019
1020
1021
1022
1023
1024
X