Sign Up, Lost Password
You need to login to take part
How can i fix this awful lag
By jacobburgess3, with no replies.
i'm trying to code and every 12 seconds it lags for 20 seconds, and the faster i type the longer ill have to wait, i cant type out one statement without this happening and making me rage a new one in my keyboard. if anyone know how to make this thing properly utilize my CPU or something that would be great, because its not my computer, I've used the app on a many PC, and i'm quite supprise i couldn't find it in discussion, PS: its only when i'm typing code., Thanks GAME ON! ~~~~~
By afr2378, with 1 reply.
Replied to by davmac, about 6 hours 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?)
By CosmicCaleb, with 3 replies.
Last reply by danpost, about 10 hours ago:
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 18 hours 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.
Spawn objects faster the less objects of that kind are in the world
By Recorsi, with 1 reply.
Replied to by danpost, 1 day ago:
You can base the random chance to spawn on the number of rocks currently in the world. For example, line 3 could be: <Code Omitted>
How can I save and read a highscore?
By Recorsi, with 5 replies.
Last reply by danpost, 1 day ago:
There seems to be several issues with the given code. I cannot positively say that any are directly related to your current issue. (1) You should only need to get the
object once -- not every act cycle; and certainly not twice every act cycle, which is what appears to be what your current code does (
method first calls
, then calls
, which also taps the server for the
object). Add a constructor to get the
object and throughout the rest of the class, just check to make sure it is not still
By suzbo, with 1 reply.
Replied to by davmac, 1 day ago:
Hi, (as per Greenroom discussion) the student can contact support via firstname.lastname@example.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).
By C&PIndustries, with 2 replies.
Last reply by C&PIndustries, 1 day 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, 4 days 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, 4 days ago:
Piano Tiles - Continuous Tiles
By faze_bleach, with 5 replies.
Last reply by danpost, 5 days ago:
How should I use the getKey() method? I'm not sure where to put that in my code.
I believe you would use something like the following somewhere in the act method in your Piano class: <Code Omitted>
By Nallaekul, with 17 replies.
Last reply by danpost, 5 days ago:
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, 6 days 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, 6 days ago: