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
Changing Body's Colors
By GreenfootMolly, with 3 replies.
Last reply by danpost, about 11 years ago:
Unmatched tags in your last post caused it not to post properly. Here it what it was supposed to show:
GreenfootMolly wrote...
Help Please!!!!!
By Oliver54699, with 1 reply.
Replied to by davmac, about 11 years ago:
People here want to help you learn, not do your homework for you. Read
this page
- all of it - and come back when you have a short, focused question.
java.lang.NullPointerException and help with class arrays
By CodeShark, with 1 reply.
Replied to by danpost, about 11 years ago:
For one thing, you are trying to 'move' or 'setRotation' of an element of the array before you are adding any line objects into the world (lines 28 through 31). Another thing is that the array is never filled with any Linep1 objects; the array is declared to hold up to 5000 of them, but none are ever created and set to any elements of that array.
UserName, Data Storage
By Vellyxenya, with 6 replies.
Last reply by Vellyxenya, about 11 years ago:
Ah okay, I finally understand :) Thank you very much for all your answers!
Help with this error I can not shake off; direction
By ereal1, with 1 reply.
Replied to by danpost, about 11 years ago:
There does not appear to be any errors in the code provided. What error message are you getting? If it is in the terminal window, copy/paste the entire output here.
What kinds of libraries or jar files can NativeLoader load into greenfoot?
By EmbraceLife, with 1 reply.
Replied to by danpost, about 11 years ago:
EmbraceLife wrote...
I just wonder about the limitation of it, e.g. making use of other java libraries, what kinds of other java libraries can greenfoot import to let us use within greenfoot ?
Maybe terminology is causing some uncertainty as to what you are asking. You used the word "import", where libraries are "loaded". This leads me to believe that you may be somewhat new to java as well. To be sure as to what you are asking, please provide, if possible, examples of what you mean by "other java libraries".
Saving Data
By Vellyxenya, with 2 replies.
Last reply by Vellyxenya, about 11 years ago:
Oh yes, forgot it, thank you very much!
How to i make bullets spawn with a moving actor?
By Flynn1124, with 2 replies.
Last reply by danpost, about 11 years ago:
If you place the code to spawn the bullets in the class of the actor that shoots them, it would be a lot easier. Actually, the act of shooting would be a behavior of that actor and, as such, that is where the code to shoot should go.
How to know when a specific key is up ?
By Extreame, with 2 replies.
Last reply by Extreame, about 11 years ago:
Thanks for the suggestion. That was my problem that it went through the last if and changed to image1. I will try what you said, but it sounds like it works. Thank you again. UPDATE : I tried it and it work. Thank you.
Upgrading a button with diifferent points
By kalayamosu, with 1 reply.
Replied to by danpost, about 11 years ago:
kalayamosu wrote...
I have create a button thats is upgraded firstly by 20 points and secondly should be upgraded with 22 points, but i managed to upgrade it with 20 points. help me with the code.
Help you with what code?
How to add objects
By magICTcom, with 1 reply.
Replied to by danpost, about 11 years ago:
You should attempt to code it yourself before asking for help. Show what you have tried and ask for help on the code itself -- do not ask us to write the code for you.
Mouse Click
By pleasehelpme, with 3 replies.
Last reply by danpost, about 11 years ago:
You put the condition that the left mouse button be clicked for the actor to move and turn. That is, each time a click is registered, you have a move and turn executed. What that condition should be controlling is the setting up of a move to the clicked location, which may include turning -- but, not moving. Different conditions are to control the moving. Something that determines whether you are at the clicked location or not.
Remove an object after time
By BroTolo, with 13 replies.
Last reply by BroTolo, about 11 years ago:
Alright thanks for the help again!
how activate the auto-complete ?
By TomazVDSN, with 6 replies.
Last reply by smcgee, about 11 years ago:
thank you for this reminder!
How can you change the following (I can find no solution)?
By Windows10, with 2 replies.
Last reply by danpost, about 11 years ago:
You will need fields in the class of the hedgehog to hold its initial position in the world. The 'addedToWorld' method of the Actor class, which is executed once (when the actor is added into a world), can be used to save its initial position coordinates.
529
530
531
532
533
534
535
X