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
Animation problems
By dlanni, with 3 replies.
Last reply by dlanni, over 14 years ago:
Yay, it works! Thanks again for all your help. Now all I have to do is draw a few more walking Lanas so it doesn't look so clunky, then implement your collision detection in one of the rooms, then make the NPC cat wander around, then draw a wardrobe and install it and code it, then make GUIs for various choices, then figure out how to use scale, then...all before next Wednesday!
Radius Collision
By Gazzzah, with 3 replies.
Last reply by davmac, over 14 years ago:
Gazzzah, I think the suggestion was that you actually check the documentation, and see what methods are available. In terms of getting the finer details working, I think you need to narrow your questions down a bit, and perhaps post some code (whatever you have) to provide a basis for suggestions.
getWorld().removeObject(this); // Actor not in world error
By needcodehelp, with 3 replies.
Last reply by needcodehelp, over 14 years ago:
Thank you, will try!
How do you detect whether certain actors are gone
By kartikitrak, with 5 replies.
Last reply by kartikitrak, over 14 years ago:
Thanks so much! It worked perfectly : D
A strange NullPointer
By darkmist255, with 3 replies.
Last reply by darkmist255, over 14 years ago:
Well, all appears to be fine and dandy after cleaning up a bunch of code, I think I must've called the method twice? That was more difficult than it should've been :D.
nullpointerexception
By tylers, with 1 reply.
Replied to by davmac, over 14 years ago:
Then 'p' is null.
Help with a function? :)
By Jesse_Orange, with 9 replies.
Last reply by Jesse_Orange, over 14 years ago:
This code in SnakeHead adds a SnakeBody <Code Omitted> This is the SnakeBody
onGround question
By xChocoMel, with 1 reply.
Replied to by MrDoomsday, over 14 years ago:
Why not just add a second boolean like "onPlatform()" and use Platform.class in that one instead?
make .apk
By akin, with 3 replies.
Last reply by trash1000, over 14 years ago:
Sorry, I really don't know what you're trying to say.
What program should I use to make the sprites for my programs?
By steved, with 4 replies.
Last reply by steved, over 14 years ago:
Thanks everyone! I have paint.net now and I'm happy with it.
Making yourself null
By SPower, with 8 replies.
Last reply by SPower, over 14 years ago:
Thanks for the explanations!
Changing Levels
By dark_sky, with 2 replies.
Last reply by dark_sky, over 14 years ago:
Sounds good, thank you for your help!
Changing importance of overlapping objects
By MrDoomsday, with 2 replies.
Last reply by MrDoomsday, over 14 years ago:
Thanks! This answer is exactly what I was looking for.
How can i detect the edge of the world?
By dandefender2, with 4 replies.
Last reply by steved, over 14 years ago:
I used this code to make it sort of bounce off the edges but I'm still working on it: <Code Omitted>You could change the distance by changing the number so it fits the siz
the necessity of public and private
By Gazzzah, with 1 reply.
Replied to by mjrb4, over 14 years ago:
There's 4 levels of visibility in Java - two are public and private, another is protected and the 4th is "package private". The 4th is different because it has no keyword, it's the "default" visibility per-se, which is what you get if you leave public / private off. Your code may still work when using the default visibility since usually in Greenfoot all your code is in the same package, but unless you're dealing with packages and specifically want package private access for some reason, you should still use pick a visibility modifier for good practice.
976
977
978
979
980
981
982
X