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
make lobster fatter
By ctgreenfoot, with 12 replies.
Last reply by ctgreenfoot, almost 13 years ago:
thank you both! it works now
Method for placing adding objects to world a given radius from an object
By camsterb, with 2 replies.
Last reply by camsterb, almost 13 years ago:
Thank you for your advice. The big problem I was really having was that the hockey player would always interact with the puck once it was created, causing him to pick it up again immediately after he shoots. I used a delay (counter) after shooting the puck so that he couldn't pick it up again within a short interval. You've helped me out a few times with the game and I think it'll be finished tomorrow, so I'll post a link and maybe you can let me know what you think! It's just a college project. Only been programming for about 2 months now. But do as you wish! Might give you some satisfact
Help with Greep issue.
By kc4tlm, with 1 reply.
Replied to by kc4tlm, almost 13 years ago:
I think I worked it out. The order has much to do with it.
Joystick Input
By CPStudios, with no replies.
Does anyone have ideas as to go about adding in a joystick input? I looked at the Kinect sample programs to see how to add an input and found nothing. Any ideas?
does anybody know how to make only one greep to stop at the tomato ?
By hossam, with 1 reply.
Replied to by hossam, almost 13 years ago:
like this one http://www.greenfoot.org/scenarios/5224
scoreboard + font style
By bonana, with 4 replies.
Last reply by bonana, almost 13 years ago:
Thanks, the A.staticInteger stuff was what I needed to know ;-)
how to make one greep stop at a tomato a i need only one???
By hossam, with 7 replies.
Last reply by hossam, almost 13 years ago:
your methods is not working it stops every thing it compile but there is something wrong in it (logic error) ???!!!!
Why does the AI not work
By Game/maniac, with 1 reply.
Replied to by Game/maniac, almost 13 years ago:
never mind I fixed it
spawning at location problems
By KierTulp, with 1 reply.
Replied to by KierTulp, almost 13 years ago:
bump.
how to make a life counter
By ctgreenfoot, with 3 replies.
Last reply by danpost, almost 13 years ago:
The class is already set up to start your counter with 5 lives, all you have to do is create a counter object. To link it to your actor, you will need an instance Counter field in that actor's class. You can create and assign an object to the field in the field declaration statement and add a method to retrieve the counter object from the class: <Code Omitted>Then in the world constructor, when adding your objects to the world:
Sound Problem
By Gingervitis, with 2 replies.
Last reply by Gingervitis, almost 13 years ago:
When I have the Greenfoot.playSound for the worm class, it continually plays the sound over and over again.
getColorAt() only works on world objects, not actor objects. Can change this?
By Minion1, with 3 replies.
Last reply by danpost, almost 13 years ago:
If you want to get the color of a pixel in the image of an actor, use (from within the class of the actor whose image you want the pixel color of): <Code Omitted>The values of 'x' and 'y' are offsets from the top-left corner of the image itself.
Null pointer exception to... I don't know.
By Minion1, with 7 replies.
Last reply by Minion1, almost 13 years ago:
Thank you danpost, your observation about needing a more accurate location of the background helped me find a solution. It's not complete yet, since it's looking PAST the background picture and into the all white layer, but all in all I think I can fix it from here. If not, well, I'll probably be back here begging for help.
need help with project.
By josiahrc13, with 3 replies.
Last reply by josiahrc13, almost 13 years ago:
i did
call a method only once
By Paddy-Boom, with 4 replies.
Last reply by Paddy-Boom, almost 13 years ago:
it works! thanks a lot :)
895
896
897
898
899
900
901
X