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
How can I save and read a highscore?
By Recorsi, with 17 replies.
Last reply by danpost, almost 8 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, almost 8 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, almost 8 years ago:
Super_Hippo wrote...
Try this: <Code Omitted>
Thanks :)
Java Issue
By afr2378, with 1 reply.
Replied to by davmac, almost 8 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, almost 8 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, almost 8 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, almost 8 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).
troubles opening
By C&PIndustries, with 2 replies.
Last reply by C&PIndustries, almost 8 years ago:
Thank you for this I found out that Greenfoot 3 requires JavaFX support, which is not available on the Raspberry Pi. Please use Greenfoot 2.4.2a. So anyone else having this problem with a raspberry pi just down grade. I found this out on the support page but decided to put it here to make one less click for everyone else.
How do I import a font into a program, and then use it?
By Navique, with no replies.
I want to be able to import a tff file into my program, and have it use that file to render text. How do I achieve this?
How can you let an object rotate continuously without distracting its movement?
By Recorsi, with 6 replies.
Last reply by danpost, almost 8 years ago:
Add the following line at the end of the addedToWorld method: <Code Omitted>
Is this a correct way of turning pixels into an array
By TheGoldenProof, with 2 replies.
Last reply by TheGoldenProof, almost 8 years ago:
cool thanks
Shooting Help
By Nallaekul, with 17 replies.
Last reply by danpost, about 8 years ago:
Nallaekul wrote...
So ive added that code into myworld and have changed actor to Ogre (which is my enemy) when i kill the enemy its not respawning, any ideas?
You do not have to change the method at all. Any actor passed to it, whether of Ogre type or not will be initially placed at a random edge point. You will need to call this method from where you remove an ogre from the world (when one is killed): <Code Omitted>
Eliminar varios objetos
By Jovas007, with 1 reply.
Replied to by Agent40, about 8 years ago:
I used google translate to get this so I don't know if it's what you want exactly. But if you're wanting to delete objects you can use this. <Code Omitted>
Need help with simplifying code beccause it causes errors.
By Recorsi, with 4 replies.
Last reply by Recorsi, about 8 years ago:
Thanks :)
Can't call a function from World in an actor.
By Joxev, with 1 reply.
Replied to by Super_Hippo, about 8 years ago:
Swap lines 24 and 25 in the Bread class.
240
241
242
243
244
245
246
X