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
Detect mouse click (s)
By Venbha, with 5 replies.
Last reply by Venbha, about 9 years ago:
Then it will look like this, right? (I will apply this one and see.) <Code Omitted>
Help with intersecting objects
By xusui, with 2 replies.
Last reply by xusui, about 9 years ago:
Thank you, danpost. This helped a ton!
How to get intersecting objects to bounce off of each other?
By falafel, with 5 replies.
Last reply by falafel, about 9 years ago:
Thank you!
Map switching
By Sweatleek, with 7 replies.
Last reply by Sweatleek, about 9 years ago:
danpost wrote...
Sweatleek wrote...
danpost wrote...
Probably just need to move line 7 to line 5.
This dasn't work sadly it still louds map 1 every time (thats also the stating map)
Make the 'int x' field static (as well as moving the line): <Code Omitted> Thanks it works now here take a win.rar full of web cookies :D
Changing the speed of my Actor
By Delucaria, with 3 replies.
Last reply by danpost, about 9 years ago:
Delucaria wrote...
But if I delete it
Hippo did not say to delete it -- what was said was to move the line so that it is outside the act method (move the two lines above it down so that they are below that line).
Remove Object
By MrKryptus, with 2 replies.
Last reply by MrKryptus, about 9 years ago:
Recorsi wrote...
<Code Omitted>
thanks
Is there a way to check if the actors image is flipped or not?
By Beamo, with 9 replies.
Last reply by Beamo, about 9 years ago:
OHHH! I didn't see the capital... oops. Thanks again!
How to allow only one instance of an object
By JamesLaa, with 3 replies.
Last reply by Super_Hippo, about 9 years ago:
Your getInstance method is missing a 'return instance;'.
Scenario opens off screen on windows 7.
By shadowrt, with no replies.
I have been working on WBC-4 on my mac. It has two screens and when I had the instructor check the code he said there was an error. I downloaded the zip file I sent him to my mac at home and it worked fine. Knowing that he uses a windows system I spun up a win7 VM and sure enough, the scenario opens off screen. Holding down the shift key and right clicking to maximize gives me a visible window but that's not a solution. I also unzipped the same file on my Ubuntu laptop and it also opened properly. Has anyone had this type of issue? My solution was to take the .java files copy into a pristine WBC-4 scenario directory on the windows system and it's fine. Since I'd like to just create my zip files for homework on my mac I would REALLY like to know what the fix is.
triangle calculator - MigLayout error
By divinity, with 8 replies.
Last reply by danpost, about 9 years ago:
divinity wrote...
how do you do that? because I am getting a lot of errors, and when I put pan.getContentPane() it is not coming up for some reason
Just add to panel -- not to content pane.
clear button, how to get it to work
By divinity, with no replies.
how can u get a clear JButton to work on a gui. I am working on the same triangle program but two different ways. I got the exit but to work but cant see to get the clear button to work. I have tried using: ClearBbtn.setText("); but is is not working properly. the word clear seem to disappear on the frame. I tried something else but is still not working. can someone help me or tell me what i did wrong. <Code Omitted>
"getWorld in class greenfoot cannot be applied to given types" error?
By Beamo, with 4 replies.
Last reply by Super_Hippo, about 9 years ago:
The problem is that if you remove the rock from the world in the checkCollision method, it won't be in the world when the checkCollisionBoundary method is executed. So you can't get the y-coordinates of the rock anymore for example. You could move line 37 to the beginning of the method.
RPG Collision
By Yoran, with 6 replies.
Last reply by Yoran, about 9 years ago:
Super_Hippo wrote...
That's the easy way without checking horizontal and vertical movement individually. <Code Omitted>
thanks Alot! this really helped me :D
How to use JavaFx Application in other classes
By selbchri, with no replies.
Hi, I tried to implement a javaFX class which extends an Application. This class runs without problems in BlueJ, but if I try to use this class as an "other class" in Greenfoot and start the javaFX Application greenfoot produces an error, also the Application Window is shown correctly. Greenfoot stops working and the Debugger shows an sun.misc.Unsafe.park. I have to restart Greenfoot to go on working. Do you have any solutions for my problem? Thanks a lot for your help.
An endless stream of... Rocks.
By Beamo, with 2 replies.
Last reply by Beamo, about 9 years ago:
OH! Thank you!!
323
324
325
326
327
328
329
X