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
Hitting Walls
By CosmicCaleb, with 3 replies.
Last reply by danpost, over 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, over 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, over 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).
troubles opening
By C&PIndustries, with 2 replies.
Last reply by C&PIndustries, over 7 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, over 7 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, over 7 years ago:
cool thanks
Shooting Help
By Nallaekul, with 17 replies.
Last reply by danpost, over 7 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, over 7 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, over 7 years ago:
Thanks :)
Can't call a function from World in an actor.
By Joxev, with 1 reply.
Replied to by Super_Hippo, over 7 years ago:
Swap lines 24 and 25 in the Bread class.
Can't open preferences - Help please!
By shade882288, with 2 replies.
Last reply by nccb, over 7 years ago:
If you are still having this problem, it may be that there is an error in Greenfoot. If you contact us as described on the
support page
(especially the part about providing the debug log), we can try to work out the issue and solve it, as it sounds like a bug in Greenfoot.
Method prepare()
By gybur, with 4 replies.
Last reply by nccb, over 7 years ago:
In our menu re-organisation, Save the World was accidentally left off the top menu -- thanks for helping us notice! That will be fixed in Greenfoot 3.5.1. The option is still present in Greenfoot 3.5.0, but you can access it only by right-clicking on the world and selecting it from the popup menu there.
Back and forth movement
By DavidTshitenda, with 17 replies.
Last reply by danpost, over 7 years ago:
Explaining: <Code Omitted>
Accesing a variable or method of a world subclass
By HandsomeDodge, with 3 replies.
Last reply by Asenoju, over 7 years ago:
HandsomeDodge wrote...
Asenoju wrote...
The problem is that you wrote the "getWorld()" method right into the constructor. It's like that: First, the object is "built" (aka the constructer is called) and AFTER the object has been "built", it's added into the world. That means, by the time you call "getWorld()" there is no world your projectile is in. I suggest you to look into the "addedToWorld(World world)" method. That method is called right after an Actor has been added to the world, so you could use getWorld() in there instead of the constructor. This should fix your problem ;) Happy programmi
239
240
241
242
243
244
245
X