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
Hello Everyone Can you help Me???
By benjiedark, with 1 reply.
Replied to by davmac, almost 12 years ago:
What's the codes to make the fish kill by another actor???
Please have a look at the tutorials (see the Documentation link) - check both the written tutorials and the "Joy of Code" videos.
and how it will end.
I guess it will end badly, for the fish. :(
non-repeating random number help
By ronzhi, with 26 replies.
Last reply by ronzhi, almost 12 years ago:
Hi danpost,due to many things that i have to do i just fixed the question for certain number while still use your double array and JDialog loop but you've been really great help danpost thanks !
Stopping the scenario.....
By jennnnay24, with 20 replies.
Last reply by danpost, almost 12 years ago:
isaunders7289 wrote...
How do you make the wombats face random directions when compiled in the world
First, simplify your 'setDirection' method to the following: <Code Omitted>Then, if you do not already have Wombat constructor in your code, add the following to the Wombat class: <Code Omitted>If you already had a Wombat constuctor, just append the 'setDi
Changing snake demo 2
By JetLennit, with 19 replies.
Last reply by danpost, almost 12 years ago:
OK, I added the last statement in the following: <Code Omitted>
Mario HELP
By SWAG, with 9 replies.
Last reply by FlyingRabidUnicornPig, almost 12 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, almost 12 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, almost 12 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, almost 12 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, almost 12 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, almost 12 years ago:
Thank You JerLennit and Gevater for helping me ^_^
Graphics selection
By JetLennit, with 7 replies.
Last reply by danpost, almost 12 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, almost 12 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, almost 12 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, almost 12 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, almost 12 years ago:
This is good if you want something from a real game
If you want stuff that people have made this is good
855
856
857
858
859
860
861
X