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
Need help with code for World
By Lars2501, with 1 reply.
Replied to by danpost, almost 10 years ago:
A single equal sign, '=', is an assignment operator; and you cannot assign a value to a method call. The operator you need to use is the conditional equality operator, which is a double equal sign, '=='. Also, the 'ready' method, which returns a boolean value (or any method that return anything) must have a 'return' statement. I believe the method should read: <Code Omitted>
Need help to Count
By McBremen, with 1 reply.
Replied to by danpost, almost 10 years ago:
You need to show (1) the class where the integer is located (indicate which integer it is); (2) the class that needs to add 1 to that integer (indicate where it is to do it); and (3) explain what the integer is to hold and how that value is used in other parts of the program.
Using a while loop to add bubbles in horizontal/diagonal line
By georgette, with 3 replies.
Last reply by danpost, about 10 years ago:
You should not need a reference field for any of the bubbles (remove line 4); and the bubble created and added into the world with lines 15 and 16 are not part of any of your required set (remove those two lines). Still you are creating a bubble and not doing anything with it (line 29); remove that line. If you want to create 21 bubbles each at the center and at random locations, then change '10' in line 27 to '21'. The second while loop again will never execute. You initialize x to '300' a value greater than '11', which the loop requires the value of x to be less than.
Having issues with the wait() command...
By DukeFutzwillus, with 5 replies.
Last reply by Nosson1459, about 10 years ago:
oh
setWorld
By Nosson1459, with 5 replies.
Last reply by Nosson1459, about 10 years ago:
<Code Omitted>this doesnt work (its in an actor)
i forgot 2 call the method
nullPointerException
By Nosson1459, with 4 replies.
Last reply by Nosson1459, about 10 years ago:
thnx
Help with simple animating...
By DukeFutzwillus, with 5 replies.
Last reply by DukeFutzwillus, about 10 years ago:
Oh that is helpful actually
Let monster jump
By Jochends, with 1 reply.
Replied to by danpost, about 10 years ago:
Jochends wrote...
I can't seem to find the right code to let a monster jump on the same place and @ the same speed in a loop... . I also want to know how to die if i touch it.. .. I tryed a few things but always with bugs
What have you tried? It is always best to show what you tried. That way we can correct your ways and you can learn from that. Otherwise, we would just be doing the work for you and you probably would not learn much, if anything, from the experience.
getX getY after dragging an object
By DesperateGreenfootNewLearner, with 1 reply.
Replied to by danpost, about 10 years ago:
It might be best if you show the entire class codes. Also, use code tags (see the link 'Posting code? read this!' below the 'Post a reply' content box).
collision
By Nosson1459, with 8 replies.
Last reply by danpost, about 10 years ago:
Nosson1459 wrote...
not that everything before it
Where exactly do you think I contradicted myself?
cannot remove intersecting object
By taikvcing, with 5 replies.
Last reply by danpost, about 10 years ago:
Looks like a 3-d issue. Try having the crusher remove the brick when the crusher is down to a certain point instead of using solely collision detection. You can use the height of the brick as the amount of distance the crusher is to the platform to determine when the brick is destroyed.
JFrame
By Nosson1459, with 14 replies.
Last reply by Nosson1459, about 10 years ago:
Everything works, but that is because I put it like this:
creating javadocs for scenario
By freddyhard, with 3 replies.
Last reply by freddyhard, about 10 years ago:
This is going back! What i did afterwards was open the project in Eclipse. There were loads of errors, but all i wanted was to get the documentation which Eclipse produced nicely - that might be of some use to you?
Why can't I reload delay count?
By Astralman, with 9 replies.
Last reply by danpost, about 10 years ago:
If the 'reloadDelayCount' does what I think it does then something like this: <Code Omitted>
Need help spawning pigs randomly
By cdaawgcodeboi, with 2 replies.
Last reply by danpost, about 10 years ago:
Start with a method to spawn a pig (in your World subclass): <Code Omitted>Now, you can call it when needed. For example, if you want to occasionally spawn one and limit the number of pigs in the world to, let us say,
425
426
427
428
429
430
431
X