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
How do I make the Background transparent?
By Wheely, with 1 reply.
Replied to by danpost, almost 8 years ago:
Wheely wrote...
<< Code Omitted >> I want a transparent background in my count class. Current the background is Black.
You can create a new transparent color as follows: <Code Omitted>You should see what to replace what with.
Error in Winning screen
By Tommes, with 6 replies.
Last reply by Tommes, almost 8 years ago:
Thank you for the explanation. Now it works.
How to make a bullet disappear when its at a certain size
By Samwcool, with 2 replies.
Last reply by Samwcool, almost 8 years ago:
That worked thanks
The Joy of Code
By Aquizzy, with 1 reply.
Replied to by danpost, almost 8 years ago:
Aquizzy wrote...
I've been watching the joy of code, got to episode 19 and wanted to start messing with the source code myself. Where do I find it? I tried copying the code from the videos but I cant find the animal source code.
In the main menu bar, select "Edit>Import class...".
What is the getScale method used here
By Samwcool, with 1 reply.
Replied to by danpost, almost 8 years ago:
Samwcool wrote...
https://www.greenfoot.org/topics/60875/0 thats the link to the thread, im wondering what the getScale was
It is not any method found in the
greenfoot
package. It was a method call thrown in to show that a scale value was to be referenced there -- as if the class had the following members: <Code Omitted>
Help? (Array contains...)
By Don'tCallMeDavie, with 5 replies.
Last reply by Don'tCallMeDavie, almost 8 years ago:
It took me a few moments to fully wrap my head around what you were telling me -- But as far as I can see the system is giving me a random choice of calls with no repeats, which is exactly what I wanted! Thank you
so
much for the help!
No Compile button - New to Greenfoot
By MrsAppiah, with 1 reply.
Replied to by danpost, almost 8 years ago:
MrsAppiah wrote...
Hi, I'm following a tutorial on using Greenfoot and there is reference to compiling 'Wombatworld'. I do not have a compile button. How do I compile the world so that it appears on the screen?
Do not fret. Greenfoot now auto-compiles. If there are no syntax errors, you should be able to click on the main frame and have your world created.
Constant Crashing
By Ehhhh, with 3 replies.
Last reply by Bluefootisbetter, almost 8 years ago:
lmao got em
Greenfoot Terminal won't open. Tried previous solutions to no avail
By SweetCaroline36, with 2 replies.
Last reply by danpost, almost 8 years ago:
If on a Windows system, try hovering over task bar icon; then, move to mini-image and right click to select "Maximize".
How to find the index of the nth occurence of a given phrase in a string
By Zweeg, with 1 reply.
Replied to by danpost, almost 8 years ago:
There is another, actually 4,
indexOf
methods in the
String
class. Make use of stringName.indexOf("phrase", position) where
position
is where in
stringName
you want the search to start.
VERY URGENT
By ebollinger@sonorahigh.net, with 1 reply.
Replied to by danpost, almost 8 years ago:
ebollinger@sonorahigh.net wrote...
I cant find a way to know how to shoot a bullet in the direction of my mouse click.
It is quite straight-forward: <Code Omitted>
Score counter broken on level two, works fine on level one
By jonah420123, with 33 replies.
Last reply by danpost, almost 8 years ago:
Take a look at your
checkDeath
method. You got through all rotation to do pretty much the same thing as the following
if
with
getOneIntersectingObject
-- quite redundant. Remove lines 59 to 98. Next, notice that you ask about
death
right after it could possibly be changed. Better coding would be to just do what needs done when it is changed (as by copy/pasting lines 106 thru 111 to be inserted at line 103. In fact, that way, you would not need either variable
death
or
redbike
/
bluebike
.
Need help please
By Saveseals2, with no replies.
<Code Omitted>
How to use intersects() method
By BackFlip125, with 4 replies.
Last reply by danpost, almost 8 years ago:
BackFlip125 wrote...
yes it should repeat for each time the car intersects the oil slick. sorry if that was misleading
Maybe a misunderstanding here. I did not mean each time the car intersects (hits, or first comes in contact) with an oil slick. I meant the continuous intersecting of the same hit. For one car/oil slick collision, there will be some time of interaction. This will most undoubtedly take a number of act cycles. I was asking if these things that you want done, we to be executed once per collision (regardless of how long the intersecting lasts) or executed once for each
A quick question
By cesarinstalled, with 1 reply.
Replied to by danpost, almost 8 years ago:
cesarinstalled wrote...
Hello. I was recently asked the question on why does move go next to Greenfoot.delay and not under it. I know it acts differently but i do not know the proper terminology to explain.
Please show an example of what you are referring to (definitely not explained well).
229
230
231
232
233
234
235
X