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
Removing object after some action
By sajmon1998, with 3 replies.
Last reply by danpost, about 8 years ago:
sajmon1998 wrote...
I have the assignment in which my animal(Wombat) after 50 steps must disappear. I did something like this: << Code Omitted >> And i got error: "cannot find symbol - variable Wombat". How to make this work?
If your code above is in the
Wombat
class, then use
this
instead of
Wombat
.
help me
By Jovas007, with no replies.
¿como le hago para que si un avion no atrapa en 5segundos a un cometa este cambie de posicion? HELP ME!
help me
By Jovas007, with no replies.
¿como le hago para que si un avion no atrapa en 5segundos a un cometa este cambie de posicion? HELP ME!
NEED HELP ANIMATION
By Mounirmoon, with 8 replies.
Last reply by Mounirmoon, about 8 years ago:
problems exporting to a stand alone jar file
By vbh, with 2 replies.
Last reply by vbh, about 8 years ago:
thank you :-)
Need help
By Student2394, with 2 replies.
Last reply by danpost, about 8 years ago:
Student2394 wrote...
I am trying to make a basic movement system but my if statements will not work for some reason I can only get one of the iskeydown statements running at a time << Code Omitted >>
As is, your
else
part will execute regardless of the state of the
D
key (since
else
is linked only to the
A
key part). Move line 12 to the beginning of the method and then instead of
else
, just ask if it is still
false
at line 11.
Problems using Counter in Text Actor
By KGCSTeacher, with 4 replies.
Last reply by danpost, about 8 years ago:
The same can be said for the
Good component
field. That is, the line: <Code Omitted>would need to read <Code Omitted>for the field to obtain a value and for the
getGood
method to return that object (and not
null
).
Right click on Actor not working
By ggongwer, with 4 replies.
Last reply by davmac, about 8 years ago:
I filed a
ticket
for this in our bug database, thanks.
Space Fighter
By ChristieK, with 1 reply.
Replied to by danpost, about 8 years ago:
You start with a World object and some Actor objects. What have you tried? (your question does not conform to site standards -- not specific enough and no code given).
Problem to access variable from world
By R4ylot, with 11 replies.
Last reply by R4ylot, about 8 years ago:
I tried now different solutions and I think I solved my problem now. Thank you for helping.
Send numbers of one array between two classes
By DanielG99, with 1 reply.
Replied to by danpost, about 8 years ago:
You can use a "getter" and a "setter" method in the class where the array is located. Like the following (presuming the array holds int values): <Code Omitted>Then in Class_B. you could use something like: <Code Omitted>
How to view documentation
By dr979312, with 1 reply.
Replied to by Super_Hippo, about 8 years ago:
Good question. The required HTML-Files come with the download. However, the program doesn't seem to find it. In the title it says "null" and you get an error when trying to open it in a browser telling you that the requested file can't be found. Unfortunately, I didn't find a way to make them appear by clicking on Actor/World. Seems to be a bug in 3.5.0. You can also find the Greenfoot API here:
https://www.greenfoot.org/files/javadoc/
Enemy Shot Question
By Mr.Cleaner, with 1 reply.
Replied to by Super_Hippo, about 8 years ago:
<Code Omitted>
How to make a enemy disappear
By Gautham, with 1 reply.
Replied to by Super_Hippo, about 8 years ago:
It depends on the condition. Examples: <Code Omitted><Code Omitted><Code Omitted><Code Omitted>
Different actions when holding down a button
By Recorsi, with 1 reply.
Replied to by Asenoju, about 8 years ago:
You could define a new variable which counts how long you press a button by adding +1 every act-step the button is pressed. Like so: <Code Omitted>
242
243
244
245
246
247
248
X