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
Scoring mechanism
By Dawn1991, with 1 reply.
Replied to by JetLennit, about 13 years ago:
1. Make a static int worms eaten variable called worms (if you don't already have one) 2. Add to that variable every time a worm is eaten 3. Add a class with this code <Code Omitted>
intersecting
By Hawx_, with 6 replies.
Last reply by davmac, about 13 years ago:
are you suggesting that if another statement is added for the same condition that the brackets may be missed and then produce unwanted results?
Yes; more lines of code might be added with the expectation that these will be conditionally executed, particularly if the user has a background in a language which uses indentation for scoping (such as Python). I've seen this happen before.
Actor.getNeighbours() as public function
By DaizDev, with no replies.
I'm using Greenfoot to the 1st time and i had externalized a class named MouseManager. So i can t use getNeighbours in my MouseManager class like <Code Omitted> I have 1 question :
Why does Greenfoot not allowed this usage ?
Greenfoot could permit a class creation by using the UI without be World or Actor extended ?
Removing at world edge
By Hawx_, with 4 replies.
Last reply by Hawx_, about 13 years ago:
thanks guys :D
Poll Taker Results
By danpost, with 1 reply.
Replied to by danpost, about 13 years ago:
Favorite fruits: 32 Strawberry 17 Apple 16 Cherry 14 Cantelope 14 Banana 13 Grape 10 Pear 9 Watermelon 4 Peach 4 Apricot Strawberries win by a landslide (out of 9 voters).
inserting an object at a button
By Hawx_, with 7 replies.
Last reply by holla, about 13 years ago:
i dont think so :) /Edit: happens alot to me. like forgetting simple things
Character Movement
By Hawx_, with 5 replies.
Last reply by Hawx_, about 13 years ago:
Thanks Holla and Danpost :D
code for little crab game
By vbh, with 11 replies.
Last reply by vbh, about 13 years ago:
got it now its working thank you very much for u help
World to another world problem
By holla, with 3 replies.
Last reply by holla, about 13 years ago:
Thanks, my problem was excactly that. Now it's solved :)
Player Detection
By GrimCreeper312, with 1 reply.
Replied to by Gevater_Tod4711, about 13 years ago:
You can use the getObjectsInRange method (see the
Greenfoot API
) to check whether your actor is in a certain range of your enemy.
AI Error
By lgbrf, with 2 replies.
Last reply by lgbrf, about 13 years ago:
Thanks, I knew it would be something simple..
Object Spinning?
By SWAG, with 5 replies.
Last reply by danpost, about 13 years ago:
First, you would need to hold the GreenfootSound in an instance field in the class of your character (I will call it 'sound'). Then, in the class of the character, use 'getObjectsInRange' to see if a boomerang is in the desired range (I will use '80' for the range).
Background star shift
By GreenGoo, with 6 replies.
Last reply by GreenGoo, about 13 years ago:
Thanks, it works very well.
Moving one actor on the x-axis for- and backwards
By d4|\|i31, with 3 replies.
Last reply by d4|\|i31, about 13 years ago:
Thank you, danpost! You are my hero of the day! I have to finish this game until tomorrow and didn't had figured it out until now! :) Thanks you a lot!
java.security.AccessControlException: access denied ("java.net.SocketPermission" "www.cool-midi.com:80" "connect,resolve")
By jagrosh, with 4 replies.
Last reply by iau, about 13 years ago:
For an applet to get permission to access any URL on the Web (which is what you need), you will need to "sign" your applet's jar file before uploading it to the Gallery. This is not simple, and may well cost real money. Applet signing is described in many places, including
here
and
here
. If you want other users to run your scenario, you'll need to buy a "code signing certificate" that th
850
851
852
853
854
855
856
X