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 to use greenfoot debugger????
By danbyization, with 4 replies.
Last reply by danbyization, about 11 years ago:
Sorry i meant how do i use the greenfoot debugger to track that statement?
Counter (unreachable statement)
By JesusJesus, with 8 replies.
Last reply by JesusJesus, about 11 years ago:
it works now, thank you very much :D
Please Help me in my Project!
By benjiedark, with 8 replies.
Last reply by benjiedark, about 11 years ago:
Thank You JerLennit and Gevater for helping me ^_^
Graphics selection
By JetLennit, with 7 replies.
Last reply by danpost, about 11 years ago:
Once the images are created, it is just a matter of changing the image of the actor to the appropriate image at the appropriate time. I will try to redo the method for any size image that is generally about 30 percent taller than it is wide. Wait, the code above will do any image of a fair size and shape already. I did notice I forgot to change the number of elements in the array on line 00. (line 4). Corrected line follows: <Code Omitted>However, the name of the image array should probably be changed from 'quads' to something more appropriat
Releasing memory
By welleid, with 7 replies.
Last reply by danpost, about 11 years ago:
@welleid, I left a message for you on my Private Messaging scenario.
Program crashes when i do a shot
By JesusJesus, with 5 replies.
Last reply by danpost, about 11 years ago:
Another way to fix it is by changing line 36 to <Code Omitted>The 'return;' statement on line 39 is un-necessary and your 'move' method can be simplified to <Code Omitted>This method really does not move the object; it only checks for the edges of the world and removes the object if it is at one. You might consider renaming the method to more reflect what it does (maybe 'checkWorldEdges').
Trying to access a method from a different class
By thekidj, with 3 replies.
Last reply by danpost, about 11 years ago:
Yeah. There are many things (unfortunately) that I see wrong here. The biggest thing is that most of the code given should be in the 'die' class (by convention, class names should start with an uppercase letter); and you should only have one 'Die' class (used for both dice).
Downloading worlds and actors
By thekidj, with 3 replies.
Last reply by JetLennit, about 11 years ago:
This is good if you want something from a real game
If you want stuff that people have made this is good
problem with "atWorldEdge and canSee"
By Metal_Fox, with 4 replies.
Last reply by danpost, about 11 years ago:
Remove your Animal class from the scenario. Then, in the menubar select 'Edit'>'Import Class...' and choose the Animal class from the list and import it. Finally compile your scenario and run.
java.lang.NullPointerException
By JetLennit, with 1 reply.
Replied to by Gevater_Tod4711, about 11 years ago:
If a method should return an object which contains a method and you call this method like this methodReturningAnObject().methodOfTheReturnedObject(); It is possible that the first method returns null. That would be the same as null.methodOfTheReturnedObject(); what doesn't realy make sense. In this cases you get a NullPointerException which tells you that something went wrong.
+= and -=
By Kartoffelbrot, with 3 replies.
Last reply by JetLennit, about 11 years ago:
So basically, what I said.
How to import my own method?
By Kartoffelbrot, with 3 replies.
Last reply by Kartoffelbrot, about 11 years ago:
The (SuperClass) in front of getOneIntersectingObject(clss) was the thing I was looking for. Thank you.
computing sine and cosine in greenfoot
By arucker90, with 2 replies.
Last reply by Kartoffelbrot, about 11 years ago:
Thank you, too.
UserInfo object that is always avaliable.
By Gevater_Tod4711, with 6 replies.
Last reply by Gevater_Tod4711, about 11 years ago:
Ok so there is no way to do this. I'll try to use the adaptive code somehow else. Thanks guys.
Making a PiƱata
By Artaphawp, with 4 replies.
Last reply by danpost, about 11 years ago:
Crudely written, the code would look something like the following: <Code Omitted>As an added effect, the next line could be: <Code Omitted>this will cause the pendulum to eventually settle. However, starting a new swing will require some work determining what the counter valu
848
849
850
851
852
853
854
X