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
Changing snake demo 2
By JetLennit, with 19 replies.
Last reply by danpost, over 11 years ago:
OK, I added the last statement in the following: <Code Omitted>
Mario HELP
By SWAG, with 9 replies.
Last reply by FlyingRabidUnicornPig, over 11 years ago:
Also, with your problem, did you make sure to start gravity with a negative number? Also, make sure that you increase the gravity. If you don't have a positive number, it won't fall. When it's negative, the fireball should rise. When positive, it should fall, until it hits the ground, and that's when it goes up again.
Need help having trouble to set the wombat initial leaves eaten to a random number from 1 - 17 and Currently, the wombats face EAST once placed in the world the wombat face a random direction as they are placed in the world
By infant17, with 7 replies.
Last reply by danpost, over 11 years ago:
Actually, with 'max' set at '17' and 'min set at '1', you would use <Code Omitted>
How does a for loop work in python?
By Game/maniac, with 3 replies.
Last reply by Game/maniac, over 11 years ago:
Never mind my dad just got back and explained it to me
How to use greenfoot debugger????
By danbyization, with 4 replies.
Last reply by danbyization, over 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, over 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, over 11 years ago:
Thank You JerLennit and Gevater for helping me ^_^
Graphics selection
By JetLennit, with 7 replies.
Last reply by danpost, over 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, over 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, over 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, over 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, over 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, over 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, over 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, over 11 years ago:
So basically, what I said.
853
854
855
856
857
858
859
X