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
non static method cannot be referenced from a static context.
By Joey1994, with 1 reply.
Replied to by danpost, almost 8 years ago:
The is a series of problems with how you are trying to add worms into the world during game-play. First, in the
wormToevoegen
method, you have this: <Code Omitted>Line 2 creates a variable to hold a
Worm
object; then, line 3 assigns its value to itself (more of a fact than a command) -- its value remains
null
. Line 4 then tries to call method on a non-existent (null) worm. Let us now assume you had created a worm and assigned it t
JAVADOC - Commented methods not showing up in the documentation.
By MayorWolf, with 1 reply.
Replied to by MayorWolf, almost 8 years ago:
SOLVED: The methods must be public!
Increasing the size of the bubble by 10
By gsingh87, with 14 replies.
Last reply by danpost, almost 8 years ago:
gsingh87 wrote...
What code should I use to increment the size of the bubbles by 10 every time
Initial size plus 'a' times 10.
No Buttons Pressed
By CosmicCaleb, with 5 replies.
Last reply by CosmicCaleb, almost 8 years ago:
Exactly! Thanks so much!!
While loop
By gsingh87, with 2 replies.
Last reply by gsingh87, almost 8 years ago:
I fixed it thanks anyways
Mario not dying when touching object
By Starvader, with 1 reply.
Replied to by danpost, almost 8 years ago:
A few things to consider:
only check collision between two object in one class -- not in both (I would put it all in the Mario class);
only check collision immediately after each move of the actor;
keep horizontal and vertical movement code separate (knowing which move caused a collision will tell you the orientation of the colliding actors);
you may want to dispense with the array of enemies in your world class; I doubt very much that there is a need for it
Please give your reason for the array if you feel you need it. T
Greenfoot not opening on Mac OS X?
By paletapayasa, with 4 replies.
Last reply by paletapayasa, almost 8 years ago:
Thank you so much, I was finally able to enter the app!
Piano Tiles - Continuous Tiles
By faze_bleach, with 6 replies.
Last reply by faze_bleach, almost 8 years ago:
Thanks very much danpost, sorry for the late reply.
can you teach me how to use it
By Rio, with 2 replies.
Last reply by Rio, almost 8 years ago:
thx mate
Issues with executing code
By Facehugger, with 2 replies.
Last reply by danpost, almost 8 years ago:
If I understand what you are looking for correctly, Hippo is correct about not needing a Cooldown class; but, my interpretation is that you just need the following in your World subclass: <Code Omitted>With this, there will be a 1 second delay before act cycle
Can you please help me?
By sjdiw, with 2 replies.
Last reply by davmac, almost 8 years ago:
Also: (5) infinite (or very long) loop your code that only gets triggered occasionally. Does the scenario actually stop running - that is, does the "pause" button change back to saying "run"? If it does, it's either an exception or you've got an explicit Greenfoot.stop() call (or Greenfoot bug, as danpost suggests, though I think this is very unlikely). Otherwise, it's most likely an infinite or long-running loop in your code.
darn you quotes!!!
By C&PIndustries, with 2 replies.
Last reply by davmac, almost 8 years ago:
if(Greenfoot.isKeyDown(¨right¨)
I'm not sure what character that is, but it is not the correct quote. You need to use the < " > character, not < ¨ >. On a UK keyboard it is shift+2, on a US keyboard it is shift+' (the key next to "enter").
Control - Save the world is missing!
By katenech, with 4 replies.
Last reply by davmac, almost 8 years ago:
Hmm, sorry, the link doesn't appear to work. It should be: http://bugs.bluej.org/browse/GREENFOOT-803?jql=project%20%3D%20GREENFOOT%20AND%20fixVersion%20%3D%203.5.1 You will have to copy/paste.
changeLocation() random (x, y) coordinates
By cathamelia, with 1 reply.
Replied to by danpost, almost 8 years ago:
Please show what you tried. That way we can instruct you in such as manner that you may learn from where you were going awry.
need to learn gravity
By ebollinger@sonorahigh.net, with 3 replies.
Last reply by ebollinger@sonorahigh.net, almost 8 years ago:
thanks
239
240
241
242
243
244
245
X