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
Why doesnt removeObject work
By Mika8765, with 14 replies.
Last reply by danpost, over 9 years ago:
Mika8765 wrote...
Thanks DanPost but I want to count the number of objects and make it a variable
Maybe you need to use a method like this: <Code Omitted>
Can't pick up flowers in Level2, only in Level1.
By QueryLover, with 1 reply.
Replied to by danpost, over 9 years ago:
You made your picker strictly a Level1 type object. Replace the last 4 lines with the following: <Code Omitted>The breakdown of this line is: <Code Omitted>
How do I reverse an Actor's direction?
By ET78759, with 27 replies.
Last reply by danpost, over 9 years ago:
ET78759 wrote...
I know, I've been experimenting a little bit with my dad and found out that you
do
have to edit SmoothMover.(The method above was deleted)
No -- you do not have to edit SmoothMover. However, if you do, it should only be with the generic moving stuff. The shielding capability is specific to the player and anything related to it should be in the Player classs (that would be line 12 though 14, lines 33 through 52 and lines 138 through 142).
World wont change
By Skrylo, with 1 reply.
Replied to by Skrylo, over 9 years ago:
I found my failure myself, it was not in this class, but thanks if you tried to help
Exporting Doc
By ironphoenix20, with 1 reply.
Replied to by danpost, over 9 years ago:
ironphoenix20 wrote...
Hey. Is there a way for me to export just the documentation from greenfoot? as a pdf or another format? again, just the api, not the source code.
The documentation is in HTML format and is found in the 'doc' folder of your project. Viewing the class in Documentation format will create the HTML documentation file for that class. Some additional class documentations will be included within the folder.
Setting Score
By rockon411, with 9 replies.
Last reply by danpost, over 9 years ago:
rockon411 wrote...
Greenfoot freezes and does not say if the test passes or fail. I have to force quit to get anything to work after that. Thanks for looking over it. I'll continue working on the other programs and see if I can figure it out.
Maybe we should look at the code where you are creating a SedimentTest object.
Problems with an ArrayList
By vermox, with 3 replies.
Last reply by danpost, over 9 years ago:
You should probably build your array from within the populate method, as those references are lost as soon as the method is done executing. If you are not going to do anything with the shuffled array list immediately, then you need to move the first line of your first code post to outside the method.
Input Output
By ajabo11, with 1 reply.
Replied to by danpost, over 9 years ago:
For 1a, write a method that will take the two int parameters for the actual and guessed values. Have it place the appropriate text at the center of the screen. You can start it like this: <Code Omitted>You really only have to use the check, whether the guess was correct or not, to determine whether the word "WINNER" or
GREENFOOT TEAM
By Nosson1459, with 7 replies.
Last reply by Nosson1459, over 9 years ago:
davmac wrote...
the plugin (and/or browser) had a corrupted copy of the Greenfoot core jar file in the cache, and so on after clearing the cache it re-downloads it - but that's really mostly guesswork on my part.
That answers my question enough.
help please!!!
By jaycee1021, with 2 replies.
Last reply by jaycee1021, over 9 years ago:
I got it to work, thank you!
Java Platform Binary has stopped working.
By TheoX, with 1 reply.
Replied to by davmac, over 9 years ago:
Is it related to the problem in
this discussion
perhaps? Greenfoot (since 3.0.0) uses JavaFX; Minecraft and the Game of Life program probably don't.
How to method it?
By HemantoPaul, with no replies.
Design and write a program which asks the user to enter his or her birth year, month and day using three different dialogue boxes. Your program should validate the user input as given below. You may write separate methods for each validation. If the user enters an invalid year it should display an error message “Invalid year!”. Otherwise, the program should ask the user to enter the birth month. If the user enters an invalid moth, it should display an error message: “Invalid month!”. Otherwise it should ask user to enter the day value. If the user enters an invalid day, it should display “invalid day!” Otherwise your program should calculate the age of the person to the date 2016-12-31 and display it on the console window
Changing attack directions
By AuroraGamer, with 2 replies.
Last reply by AuroraGamer, over 9 years ago:
Thank you, but I decided to just change the images so I could use setRotation.
CursorImage
By Nosson1459, with 2 replies.
Last reply by Nosson1459, over 9 years ago:
I tried that already. If I do that then the color of the mouse won't change since the changeMouseImage method is only being called once. Anyway I don't see how that's supposed help fix my initial problem(s). It didn't help, it's not helping, and it won't help.
Terminal does not show
By asmcriminal, with 3 replies.
Last reply by asmcriminal, over 9 years ago:
Thank you guys. I did Super_Hippo's method first and it worked just fine.
365
366
367
368
369
370
371
X