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
Bouncing off Walls Help?
By jacobgalvan23, with 1 reply.
Replied to by danpost, over 12 years ago:
To bounce, you need to adjust the rotation of the object instead of its location.
Counter to Multiples of 5, problems referencing world and other problems
By DarkMageCkmario, with 3 replies.
Last reply by danpost, over 12 years ago:
What you are saying is that it does not spawn anything after the initial 25 randbox objects and one controllable after you press 'Run' and try to spawn using the arrow keys Well, your code does not say anything about doing anything when the scenario is running. There is no 'act' method anywhere. Line 26 has little effect when used in the world constructor if the constructor is only to be executed while the scenario is stopped (or initializing/resetting). Also, line 28, calling 'keyspawn' will not accomplish anything from the constructor of the world (considering what the method is doin
List Empty?
By Pointifix, with 4 replies.
Last reply by Pointifix, over 12 years ago:
jeah thanks alot ;)
Grenzenbildung
By Rudolf, with 17 replies.
Last reply by Rudolf, over 12 years ago:
Ne, ich hab das Problem das ich in meinem Menue Auswahlbutton habe über die ich Aktionen auf dem Desktop ausführen möchte. Ein Mausklick soll im Menue andere Aktionen ausführen als auf dem Desktop. Ich habe für mein Menue und für meinen Desktop zwei jpg Dateien gewählt um eine Grenze nutzen zu können die das Bild dann ja Automatisch hat. Nur ich komme einfach nicht mehr weiter. Was kann ich tun um meinen Auswahlbutton so zu konfigurieren das, wenn einmal ausgewählt nicht mehr zurück ins Menue gezogen werden kann?
Sorting outcome problem
By JasonZhu, with 5 replies.
Last reply by JasonZhu, over 12 years ago:
That is amazing how much knowledge you have about coding.
How to make new maps for greeps?
By sask_girlz_rock, with no replies.
Hello, I am a grade 12 student and i'm trying to expand my knowledge on programming. I have taken a blank greeps map but i'm not 100% sure how to add it in. I have been looking at the source codes but have not been able to find any. Help would be nice. Thanks in advance.
How to use an object off a java.util.List?
By dms, with 3 replies.
Last reply by danpost, over 12 years ago:
You could also try the following, which would not require you to create a declared List object (unless you still need the list after calling the method on each MyClass object in it and it cannot be done right there within the loop): <Code Omitted>
Java
By Wakey_Stylez, with 1 reply.
Replied to by lordhershey, over 12 years ago:
Go here
http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
, Accept the license agreement - it is a radio button in the grey box that is titles 'Java SE Development Kit 7u51' Select the type you need probably be Windowsx86 (32 bit) or Windowsx64 (64 bit) . After you get it downloaded and installed, you might have to set the security to medium, open control panel search for the java control panel and set it under the security tab.
Preventing Collision
By Matt, with 7 replies.
Last reply by danpost, over 12 years ago:
I programmed one using 'getOneObjectAtOffset at several locations and, if a car was found to be at any of those locations, its direction of movement was checked to see if it was a concern. Only if no cars were of concern was the car allowed to move.
Automatically adding a rotated object
By kzb94, with 6 replies.
Last reply by danpost, over 12 years ago:
danpost wrote...
<Code Omitted>
Do this change for every line in the second group (the group you need rotated). You can use the same field for all the changes (only use 'Actor actor' the first time; after that, just use 'actor'). Start like this:
How do i combine my different levels.
By kzg0015, with 1 reply.
Replied to by Entity1037, over 12 years ago:
The greenfoot user danpost has some scenarios about this same thing. Try looking at this one: http://www.greenfoot.org/scenarios/9849 I don't really know too much about this, but I know you could alternatively use UserInfo to save information that can then be re-loaded from another world.
A weird problem
By JasonZhu, with 1 reply.
Replied to by JasonZhu, over 12 years ago:
Nevermind guys, I found out why.
Health Bar Help
By hugtvy, with 15 replies.
Last reply by hugtvy, over 12 years ago:
dont worry i got it working with this simple code haha not quite as good as yours
For each loop and removal in ArrayList
By JasonZhu, with 9 replies.
Last reply by JasonZhu, over 12 years ago:
Good to know, thank you for sharing davmac!
Drawing an image on whole world
By Excelsior, with 5 replies.
Last reply by Excelsior, over 12 years ago:
Sorry, my mistake.
715
716
717
718
719
720
721
X