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
How do I add a visible timer that counts down?
By ProgrammingPanda, with 2 replies.
Last reply by ProgrammingPanda, about 9 years ago:
Thanks! It worked perfectly! :)
Programming A.i. for Pong
By Kronos, with 35 replies.
Last reply by Kronos, about 9 years ago:
danpost wrote...
Kronos wrote...
Line 20 and 32 needed to have '==' not '=' Line 32 was not indented enough, so it was being called as the else statement to line 18
I missed all that in the one class (I had expected the corrections in the other class to be made in that one also -- but, they were not).
No problem. I had not been looking for minor errors like that either. Anyway, the entire game now works. Thank you so much for your assistance. It is much appreciated.
How to subtract units attack from enemies health
By InfuriatedHog, with 3 replies.
Last reply by InfuriatedHog, about 9 years ago:
Thank you so much!
Method Interval Delay
By zeke.shoe, with 4 replies.
Last reply by zeke.shoe, about 9 years ago:
Omg thank you so much! I can't believe I overlooked such a simple fix.
How to make new Predator spawn.
By SprayNPray, with 5 replies.
Last reply by danpost, about 9 years ago:
A single equal sign is an assignment operation, which in this case assigns 5 to the variable showCounter. To compare 5 to the current value of showCounter, use a double equals sign, the equality comparison operator.
been trying to get this pizza main gui program to work
By divinity, with 1 reply.
Replied to by Yehuda, about 9 years ago:
I don't know what the plceorder JButton is supposed to do. Right now it will change it's text to "place order" and if pizzaSize.isSelected(ThinCrust) then it will also display in the terminal window "place orderPlace your order ". I know this from lines 375 - 383. What is the plceorder button supposed to do as opposed to what it does. (There are a lot of variables here that I don't know where they're created, also there is no main method.) (P. S. It looks like you created the JFrame with the NetBeans IDE GUI builder or something like that.)
HELP!
By GewoonAxl, with 1 reply.
Replied to by Yehuda, about 9 years ago:
What is your menu? If it's just an actor that's added into the world in the constructor then you can remove it with the started method. <Code Omitted> I think I may have misunderstood you. If you mean that you want to remove an actor when your "Play" button is
Pokeball cant get out a pokeman
By Kalpshah6, with no replies.
I tried the pokeball to add an pokeman but it doesnt work.
How to add an actor at a specific time.
By bombrz, with 2 replies.
Last reply by bombrz, about 9 years ago:
neverminf i figured it out
Simple issue
By TisHenry, with 5 replies.
Last reply by danpost, about 9 years ago:
If want the Short_Brian object to be a Brian object, then you need to have the Short_Brian class extend the Brian class instead of the Mover class (line 10 of Short_Brian). But then, because both classes have an act method, the one in the Brian class will not automatically execute for a Short_Brian object unless you add: <Code Omitted>to the Short_Brian act method.
Falling objects
By Brettwolin, with 1 reply.
Replied to by Yehuda, about 9 years ago:
To make an object disappear when it hits the bottom of the screen add the following at the bottom of the Actor's act method: <Code Omitted>To make objects randomly get added to the top of thw World then put the following into the World's act method:
Highscore
By DustTerminator, with 3 replies.
Last reply by danpost, about 9 years ago:
DustTerminator wrote...
Shoul i use the public static int form?
Yes.
How do I make the Maincharacter stop if it hits a platform?
By ketschma, with no replies.
I have a huge problem concerning the main character who doesnt want to stop when i hit the platform(jump n run). I already tried it with obejctatoffset but that wont work, cause greenfoot doesnt recongnize the character. <Code Omitted>this code is written in the Platform.class cause they are the ones moving same with the right side is there any other possibility? Please let me know, thanks in advance!
World changing
By DustTerminator, with 2 replies.
Last reply by DustTerminator, about 9 years ago:
Thanks a lot!
Help interpreting some code
By Ruv25808, with 2 replies.
Last reply by Ruv25808, about 9 years ago:
Oh I see. Thanks.
347
348
349
350
351
352
353
X