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
Score Counter
By Nooooob, with 24 replies.
Last reply by Nooooob, over 9 years ago:
danpost wrote...
You are not calling 'updateImage' from the 'addScore' method after incrementing the value of the 'score' field. (seems you removed that line for some unknown reason)
It's working :) THANKS A LOT! @Super_Hippo too!
How to change the default Actor/World class codes?
By Super_Hippo, with 2 replies.
Last reply by Super_Hippo, over 9 years ago:
Thank you very much. I had to edit these files exactly there. The other languages don't have these templates.
Class,interface or enum expected
By HardToFindAName, with 9 replies.
Last reply by HardToFindAName, over 9 years ago:
HardToFindAName wrote...
restart button
By sanch, with 1 reply.
Replied to by Super_Hippo, over 9 years ago:
Add an actor to the world. Give this actor an image with like "Click to try again" or "Press Enter to try again". And then, you could check for a mouse click on this object or if enter is pressed to see if the game should be restarted.
URGENT HELP WITH CODE EDITOR
By HardToFindAName, with 5 replies.
Last reply by Super_Hippo, over 9 years ago:
I guess you have to restart then. Or at least I can't help you.
i need help urgent
By fgryh123, with 7 replies.
Last reply by Super_Hippo, over 9 years ago:
@Nosson: Yes, my post was a question but still, his last post explained what he wants to do. @fgryh: You could put this in the Plant class. Make sure you have a waterNeeded method or some other way to check if the notification should appear.
Making a Score Counter?
By beshie, with 10 replies.
Last reply by beshie, over 9 years ago:
danpost wrote...
Please follow the written guidelines found
here
when asking for programming help.
Okay, sorry!
JSpinner
By Nosson1459, with 6 replies.
Last reply by Nosson1459, over 9 years ago:
I didn't need the lastMinuteValue variable I just did 'if (minuteValue == 60
&& hourValue != 0
)' here is the code:
Splitting an object into 2
By dillyduck, with 4 replies.
Last reply by danpost, over 9 years ago:
Create new SmallAsteroid objects using: <Code Omitted>Then use 'getWorld().addObject(smallAsteroid1, << wherever >>);'.
Play sound when an object touch another.
By LaurentiuRohan, with 3 replies.
Last reply by danpost, over 9 years ago:
Nosson1459 wrote...
You can do: < Code Omitted >
Lines 1 and 2 in the code provided by Nosson1459 must be declared outside of the method; otherwise, a new sound will be created and played for each act cycle that the actor is touching the button.
Placing Objects
By BrownDwarf, with 8 replies.
Last reply by danpost, over 9 years ago:
BrownDwarf wrote...
How do I add an object to a list?
See
here
.
second world?
By StarterCreator, with 6 replies.
Last reply by Nosson1459, over 9 years ago:
getWorld returns the world that the actor that the code is running from is currently in, I don't think you can get any other world, so the addObject will add it to the same world. (Not arguing with danpost just saying it in my own words)
java.lang.NullPointerException error
By FunTHX200mc, with 1 reply.
Replied to by danpost, over 9 years ago:
Switch lines 44 and 45. You need the actor in the world when you call the 'lovit1' method.
Algorithms
By Hondrok, with 3 replies.
Last reply by Hondrok, over 9 years ago:
Nosson1459 wrote...
See
this: https://docs.oracle.com/javase/tutorial/collections/algorithms/index.html
.
Super_Hippo wrote...
Algorithms are like a step-by-step manual to reach a goal from a defined start position. You could even count the following as an algorithm: Situation: You have dirty hands. Goal: You want to have clean hands. Algorithm: As long as your hands are dirty -hold your hands under water for 10 seconds -use soap and wash your hands for 30 seconds
thank youuu
Help with MouseClicked, emergency
By HardToFindAName, with 24 replies.
Last reply by Super_Hippo, over 9 years ago:
You're welcome. Good luck ;)
394
395
396
397
398
399
400
X