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
help with spawn
By khoalabear, with 4 replies.
Last reply by Vellyxenya, over 10 years ago:
And don't forget to write "counter--" whenever you destroy the enemy, or it exits the World
Reset the Values of a Wave Help
By kieran, with 1 reply.
Replied to by danpost, over 10 years ago:
There is some pertinent code missing from your post. Particularly, to start with, the act method (or the method that calls these given methods).
what am i missing here
By divinity, with 3 replies.
Last reply by danpost, over 10 years ago:
divinity wrote...
hi danpost i removed the zero from fed_tax, state_tax, gross_salary, payrate and hrly rate and i get syntax errors, how do i correct this
The problem is not that you are setting those fields to zero when you declare the variables; and by removing the assignment to zero, you are not really altering anything -- as the default value for new double type variables is zero. The problem is that these variables need to be assigned some non-zero values somewhere along the way. I would think that there is a table or database that associates a name with a specific 'hrlyrate' v
Sound issue
By Trunksssj4, with 3 replies.
Last reply by danpost, over 10 years ago:
Trunksssj4 wrote...
So what can I do instead??
Declare the GreenfootSound object outside the method.
Storing informations
By Vellyxenya, with no replies.
Hi, after I knew that UserInfo methods are useless in a jar.file, i'm trying to store my informations by writing them into a .txt file. So my question is: If I create a text file in the project folder, write informations into it and then export the project into a jar.file, will the text file still be there? And will I by able to modify the text file from the app (I must write methods to store the score and so on)? Thank you
Stop Showing text
By Leres75, with no replies.
Hi I'm trying to do a health indicator that shows above the given objekt I tried this: <Code Omitted>but all it does is create a long line of text (my charakter is moving) my question: How do I delete the expired texts?
Help with counter
By flipgbh, with no replies.
I'm trying to write practice code for a GCSE exercise, but for some reason the counter doesn't work, despite the fact that I'm using the code given on this site. Can anyone help? The terminal window comes up with the error message: java.lang.NullPointerException and the issue is in this line: Counter counter = oceanWorld.getCounter(); What's wrong with the code in this line?
get Variables from other classes
By HamburgerSV, with 15 replies.
Last reply by Berserkker, over 10 years ago:
thx, reading your answer i was like *facepalm*.
Help with Object Collision(It won't work :( )
By af2akita, with 3 replies.
Last reply by Super_Hippo, over 10 years ago:
<Code Omitted>This moves the actor and when it touches a block or other obstacle, it moves back to where it was. If you want the actor to move as near to the obstacle as possible, you can use the following instead of the last line:
I need help with greenfoot standalone
By andreid, with 1 reply.
Replied to by davmac, over 10 years ago:
What steps exactly have you performed to install the standalone Greenfoot? Failure to find the bluej.Boot class would normally be caused by moving or deleting necessary files. You should extract the contents of the downloaded zip file (including the folder structure), and run Greenfoot by double-clicking the greenfoot.exe launcher at the root of the installation (without moving or removing any of the files that were extracted).
Strange things happening
By Freekywill, with 1 reply.
Replied to by Freekywill, over 10 years ago:
and never mind I am a complete idiot. Is there a way to delete a discussion lol.
Newbie needs help with text
By gmacias, with 5 replies.
Last reply by gmacias, over 10 years ago:
Never mind, I just figured out that it was my computer screen. It looks fine on other computers. Thank you
Change levels when reached a certain score
By Joshua, with 15 replies.
Last reply by danpost, over 10 years ago:
You only need to create and start the sound in one world -- your initial one. If you need to return to a new instance of that world, you will need to keep a reference to that GreenfootSound object and test if it is playing or not before starting it (to avoid starting it again).
How do I make my crab eat the worms?
By tn13673, with 2 replies.
Last reply by tn13673, over 10 years ago:
Thanks! Finally got it to work! LOL, stupid spelling errors.
Background Scrolling
By Redhand, with 1 reply.
Replied to by danpost, over 10 years ago:
Usually, when you have an actor that needs to remain in a certain location in the world, the actor would be allowed to move normally and the world will move the actor back to where it needs to be and adjust the background and other actors in the world to maintain their current positions with respect to each other. You can try to code this yourself or import and use a pre-made helper class to accomplish this (there are several available here on the site by different users). Currently, you appear to have not even tried anything at all to implement scrolling.
496
497
498
499
500
501
502
X