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
Is there a way to change font styles in Greenfoot?
By patches312, with 1 reply.
Replied to by danpost, about 7 years ago:
patches312 wrote...
Is there a way to change font styles in Greenfoot?
If you mean to change to bold or italicized, you can create a new Font with those characteristics. Without testing, I think you could change line 10 to something like: <Code Omitted>
What does the value<target string mean?
By BH54, with 1 reply.
Replied to by danpost, about 7 years ago:
BH54 wrote...
What does the value<target string mean? << Code Omitted >>
This particular Counter class has an animated score display. If, let us say, 5 points was to be added to the score, the true score is set as a target for which the value of the counter (which is displayed) is to more slowly progress to. So, if the value of the counter was zero (as is the value of target), when 5 is added, target is set to 5 and the displayed value will be seen to be "rolling" up to the new "target" value. The act method basically says to change the shown value by one toward the target value if
Why am I getting an error in my for-loop in my createStars method?
By dmac28, with 2 replies.
Last reply by danpost, about 7 years ago:
dmac28 wrote...
We are having a quiz this week and I am not sure why I am having errors in the parameter of my method. If anyone could help me, I would appreciate it.
The error is in the previous line (line 3). It just "runs" into the next line because the compiler is trying to make sense of line 3 (which is not a completed line of code).
Why are you adding asteroids into the world in a method that is to create stars?
What is the smallest delay I can put between the reload delay?
By BucketSqaudGodSquadNationGangGangPraiseJesusLoveMom, with 2 replies.
Last reply by danpost, about 7 years ago:
BucketSqaudGodSquadNationGangGangPraiseJesusLoveMom wrote...
What is the smallest delay I can put between the reload delay? << Code Omitted >>
To determine the smallest delay (without having no delay), one would need to see how you are running the counter and when it is incremented with respect to when you check its value and reset its value during an act cycle.
What does the super before (velocity) do?
By irishman, with 1 reply.
Replied to by iamdsd, about 7 years ago:
get flamed bro!
fat cat project - need help writing if statement
By Toodumbtocode, with 1 reply.
Replied to by danpost, about 7 years ago:
Toodumbtocode wrote...
I'm very new to greenfoot but i don't know whats wrong with my if statement!! please help << Code Omitted >>
A class can create multiple same-type object and each will have their own state. That is to say, which
Cat
instance are you trying to determine is tired? Cat, being the name of a class, does not answer this. You need to get the state of an object of the class, not the class itself.
Need help adding black keys for the piano project....
By Toodumbtocode, with 10 replies.
Last reply by Toodumbtocode, about 7 years ago:
Thank you so much!
Help with Fonts
By Chipley, with 1 reply.
Replied to by nccb, about 7 years ago:
In more recent versions of Greenfoot, we no longer use java.awt.Font and instead have our own greenfoot.Font class. Remove the line near the top that says "import java.awt.Font". Then change line 22 in the snippet to be new Font("Comic Sans MS", 32) without the Font.PLAIN part. That should get the code working.
downloading Greenfoot
By meriem, with 1 reply.
Replied to by davmac, about 7 years ago:
Hi! The first rule of asking for help is "give details" :) Without knowing what you've tried and what happened when you did, no-one can help. The best I can say is that you can download Greenfoot from the "download" section of this website, and the installation instructions are linked from there as well.
Basic Button
By Gaming_100, with 5 replies.
Last reply by danpost, about 7 years ago:
Gaming_100 wrote...
So what should my code look like?
Just move (cut and paste) lines 10 through 13 into an
act
method within the class.
Help with moving object
By Alexlife2002003, with 6 replies.
Last reply by danpost, about 7 years ago:
Alexlife2002003 wrote...
any suggestions on how to make it go back down when it reaches the top?
HINT: You want to reverse directions when the actor is near the bottom (which you have) OR near the top (which you don't have).
adding a list of objects
By redenton, with 3 replies.
Last reply by redenton, about 7 years ago:
nvm. I found a solution. but it was thanks to your advice, so thank you danpost!
input output question
By ericnjaramba, with 3 replies.
Last reply by danpost, about 7 years ago:
ericnjaramba wrote...
the part im having trouble with is "Ask the user to input the number of singles, doubles, triples, and home runs (each asked individually)" ?
You should check out the
ask
method of the Greenfoot class.
Actors not "saved in world"
By KSH-Kinderkanti, with 1 reply.
Replied to by delmar, about 7 years ago:
Haven't seen the problem. Sounds like the world class was not recompiled properly. Try creating a new world object manually (right-click the world subclass and select "new MyWorld()", or whatever your world is called).
Start game countdown
By Chipley, with 5 replies.
Last reply by danpost, about 7 years ago:
Chipley wrote...
How would i be able to change the text on your pause World?
You will find the text in the middle of the
Panel
class.
234
235
236
237
238
239
240
X