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
PAINT GRID COLOR
By ronald, with 17 replies.
Last reply by ronald, about 4 years ago:
it looks good with your code for rows and cols 25, I found 113 and 112 for int x and int y 100
How do i loop?
By jeppe9756, with 5 replies.
Last reply by danpost, about 4 years ago:
I think you want this: <Code Omitted>I am just wondering how the
counter.moneys
value is going to get to 10 to begin with.
Objecting moving towards another roughly
By xixEmilyxix, with 13 replies.
Last reply by xixEmilyxix, about 4 years ago:
sorry and thank you , ill try that
Download de images
By Joao351, with no replies.
Boas pessoal! Alguem sabe de algum site que possa fazer download de imagens que juntas fazem uma animaçao. Já procurei por tanto site e nao encontro nada, ficaria muito agradecido se alguem pudesse ajudar!
mouseClicked() does not work with getOneIntersectingObject()
By Luvis, with 5 replies.
Last reply by Luvis, about 4 years ago:
danpost wrote...
An aside: you code can be simplified to the following: <Code Omitted>Note the change in what is clicked on ('
null
' in line 2). This is essentially the same as what you originally had because any click anywhere would cause a shot to be fired,
What is wrong with my code
By johnsec, with 4 replies.
Last reply by danpost, about 4 years ago:
<Code Omitted>or <Code Omitted>It will not be 7.
What should be a string seems to have become a list...?
By gd_deception, with 1 reply.
Replied to by danpost, about 4 years ago:
gd_deception wrote...
I am given the error "java.util.List<java.lang.String> cannot be converted to java.lang.String, which I presume means that the parameter I gave when calling the loadFile method was not in fact a string.
Correct -- it is not a
String
object. It is a
List
object that happens to contain one element that happens to be a
String
object. Use: <Code Omitted>This (with the "
.get(0)
") will return (get) the first
String
element from the list.
Return to a previous world
By salim5112, with 2 replies.
Last reply by salim5112, about 4 years ago:
it worked, thanks a lot ;)
can you tell me why it is not working
By Prabhat, with 1 reply.
Replied to by danpost, about 4 years ago:
Prabhat wrote...
can you tell me why it is not working
In what way is it not working (what behavior is being exhibited)? Where is this code (what method; what class)?
BINARY
By ronald, with 16 replies.
Last reply by danpost, about 4 years ago:
ronald wrote...
Do I have to redo a for loop so that I click so that the drawing appears with the green and blue buttons at the same time?
If you have to, just move line 10 from
here
to where you add the buttons.
How to use the show text method
By johnsec, with 2 replies.
Last reply by Gabe1098, about 4 years ago:
johnsec wrote...
How do I use the show text method
or you could make a new class and use this<Code Omitted>
i get a error when trying to use ARRAYS
By Aaron-aid, with 7 replies.
Last reply by danpost, about 4 years ago:
Aaron-aid wrote...
i get the error that actor cant be converted to enemys :c
Okay, use: <Code Omitted>
open greenfoot project in a different ide
By nafridi217, with 1 reply.
Replied to by Aaron-aid, about 4 years ago:
probs not, but you could try to use a stronger machine or plug in your device
Hintergrundmusik per endlosschleife?
By lamerian, with 5 replies.
Last reply by RcCookie, about 4 years ago:
Sorry, habe selber noch nie Sounds in Greenfoot benutzt. Du musst die Klasse GreenfootSound benutzen, nicht Greenfoot: <Code Omitted>
How to display strings
By johnsec, with 1 reply.
Replied to by Super_Hippo, about 4 years ago:
The easiest way is to use the showText method in your world. For example like this: <Code Omitted>
55
56
57
58
59
60
61
X