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
Error that has no explanation
By lonely.girl, with 3 replies.
Last reply by lonely.girl, over 12 years ago:
I converted it to mp3 a& now it's working :D thank a million :)
Changing Codes on a Jar File
By rduran26, with 2 replies.
Last reply by vonmeth, over 12 years ago:
Can't you
extract
the jar, including the source code?
Help with objects above Actor.
By Sergio, with 2 replies.
Last reply by Sergio, over 12 years ago:
Didn't know this method existed, thanks mate I fount it and it really helped!
HELP understanding code needed plz
By Amanda92, with 12 replies.
Last reply by Amanda92, over 12 years ago:
thanks a lot
Greenfoot Mouse and Button
By yl92, with 1 reply.
Replied to by danpost, over 12 years ago:
Refer to the MouseInfo class documentation in Greenfoot to find what method(s) you are looking for.
Animation
By TomazVDSN, with 4 replies.
Last reply by TomazVDSN, over 12 years ago:
Thank you, I will try and let you and our colleagues to know the result.
Hi friends! Please explain some codes.
By hkrhässleholm, with 10 replies.
Last reply by vonmeth, over 12 years ago:
1) The rules are applied in the applyRule method. First it calls countNeighbors (which we went over last time), to get a count of the number of alive cells around the cell. Next the rules come into play. "if(numNeighborsOn) < 2)" Is the number of neighbors that are alive, less than 2? If so, it dies (state=false) It satisfies this rule: "1. Any live cell with fewer than two live neighbours dies, as if caused by under-population." "else if (numNeighborsOn > 3)" Is the number of neighbors that are alive, greater than 3? If so, it dies (state=false) It satisfies this rule: "3. An
Conway's Game Of life
By Wavesludge, with 18 replies.
Last reply by Wavesludge, over 12 years ago:
Yeah, that works. Thanks for the help!
Moving while in air
By programmer274, with 3 replies.
Last reply by danpost, over 12 years ago:
Just copy the mouse checks and movement code into the fall method.
play again button on scoreboard
By davemib123, with 13 replies.
Last reply by davemib123, over 12 years ago:
good suggestions :) i'll have to test them when I get a chance.
Need help with carrying objects
By Sergio, with 2 replies.
Last reply by Sergio, over 12 years ago:
Ah I see, thanks mate really helped a lot!!
Highscores UserInfo - Set username
By Dytanoth, with 4 replies.
Last reply by Dytanoth, over 12 years ago:
Is there a scenario online, as example?
breakout
By actinium, with 2 replies.
Last reply by actinium, over 12 years ago:
Thanks, will give your suggestions a try.
variable not changing..is something wrong in the code. the value of variable random is not changing even after envoking the function.?
By vagisha, with 17 replies.
Last reply by vagisha, over 12 years ago:
thanks everybody! i have got it right..
Pivot Points? Attached Objects
By ryanprescott, with 7 replies.
Last reply by danpost, over 12 years ago:
Create seperate actor classes for each part. Add to each one an instance List<Actor> array to hold the appendages (the parts that do not have further appendages do not need the list). Create the appendages for each part in the constructor of the class which that part extends from and add them to its list. Add an 'addedToWorld(World world)' method to add the listed objects into the world and call a method that you will add to each one (those with lists) called something like 'fixAppendages'. These methods will locate to listed appendages to there proper location dependent on its location. S
910
911
912
913
914
915
916
X