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
Piano Tiles - Continuous Tiles
By faze_bleach, with 6 replies.
Last reply by faze_bleach, about 7 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, about 7 years ago:
thx mate
Issues with executing code
By Facehugger, with 2 replies.
Last reply by danpost, about 7 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, about 7 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, about 7 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, about 7 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, about 7 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, about 7 years ago:
thanks
How can I save and read a highscore?
By Recorsi, with 17 replies.
Last reply by danpost, about 7 years ago:
You must realize by now that all non-static methods must be executed on an object (or instance) of the class. The
getScore
method of the
UserInfo
class is executed on a
UserInfo
object. The
getMyInfo
method (a static method executed on the class itself) may return a
UserInfo
object that the method can be executed on. Again, you still need to check to make sure
null
is not returned before attempting to execute the method on what is returned.
How can i fix this awful lag
By jacobburgess3, with 1 reply.
Replied to by davmac, about 7 years ago:
What version of Greenfoot are you running?
Spawn objects faster the less objects of that kind are in the world
By Recorsi, with 4 replies.
Last reply by Recorsi, about 7 years ago:
Super_Hippo wrote...
Try this: <Code Omitted>
Thanks :)
Java Issue
By afr2378, with 1 reply.
Replied to by davmac, about 7 years ago:
All recent versions of Greenfoot include the JDK and don't require a separate download. Which version of Greenfoot have you installed? And when you say you have "reinstalled Java SE download several times" what download is that exactly (is it the JDK? If you're not sure, what was the URL of the web page you downloaded it from? What version of Java was it?)
Hitting Walls
By CosmicCaleb, with 3 replies.
Last reply by danpost, about 7 years ago:
CosmicCaleb wrote...
I'm pretty new to this, so that sounded like Spanish. Could I have some code to see what you mean?
A field is a variable that is declared within a class, but outside of any code blocks. A variable declared within a code block only exists during the execution of the block. Once an execution block terminates, variables declared within the block no longer exist. Example 1:
I can´t save my world :(
By Mauli, with 5 replies.
Last reply by nccb, about 7 years ago:
We've now replicated such an issue and fixed the bug ready for 3.5.1. Try the following to see if it also fixes the issue for you -- open your world class editor, then go to the very end of the class, and press return a couple of times to add a blank line at the end. The bug we found seemed to relate to the lack of a newline at the end of the file confusing the editor.
Password Problems
By suzbo, with 1 reply.
Replied to by davmac, about 7 years ago:
Hi, (as per Greenroom discussion) the student can contact support via support@greenfoot.org - if we have their email address/username we can investigate. The most likely reason is that they are entering the wrong username when logging in. (Perhaps they are entering their email address instead of username).
238
239
240
241
242
243
244
X