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
Help with objects above Actor.
By Sergio, with 2 replies.
Last reply by Sergio, almost 13 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, almost 13 years ago:
thanks a lot
Greenfoot Mouse and Button
By yl92, with 1 reply.
Replied to by danpost, almost 13 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, almost 13 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, almost 13 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, almost 13 years ago:
Yeah, that works. Thanks for the help!
Moving while in air
By programmer274, with 3 replies.
Last reply by danpost, almost 13 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, almost 13 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, almost 13 years ago:
Ah I see, thanks mate really helped a lot!!
Highscores UserInfo - Set username
By Dytanoth, with 4 replies.
Last reply by Dytanoth, almost 13 years ago:
Is there a scenario online, as example?
breakout
By actinium, with 2 replies.
Last reply by actinium, almost 13 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, almost 13 years ago:
thanks everybody! i have got it right..
Pivot Points? Attached Objects
By ryanprescott, with 7 replies.
Last reply by danpost, almost 13 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
getHeight method
By programmer274, with 2 replies.
Last reply by actinium, almost 13 years ago:
If you want the height for an Actor use the getImage() method i.e. <Code Omitted> The GreenfootImage class contains the getHeight method that returns the Height of an image. I am guessing you want the height of an Actors image. Check out the greenfoot docs for GreenfootImage.
I have problem with getHeight() method
By snow13, with 10 replies.
Last reply by programmer274, almost 13 years ago:
usually when I ask a question I try not to ask for the straight question and if I do I ask what each part of the code does.
911
912
913
914
915
916
917
X