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
Lists
By JayWood860, with 6 replies.
Last reply by danpost, almost 13 years ago:
A list is an object, yes; but, it is an
abstract
object and cannot be displayed as such. Really all you have are a bunch of String object (which also are abstract). What needs done is to create objects to draw the strings on and display them, which you can accomplish by way of a list component gui or by coding it yourself (I prefer to code things myself, as then I am not restricted in any way as to how to do things and what can be done. The drawback to this, though, is the time factor. On the plus side, however, is the experience of the journey to accomplish this task; the knowledge
Change world image
By TechWebLock, with 3 replies.
Last reply by TechWebLock, almost 13 years ago:
trash1000 wrote...
I don't think you have another method to change the world's background other than with 'setBackground()'
You saved me again thanks :-) I dont know why I didnt try that LOL
Can't start Greenfoot =(
By Dennis, with 10 replies.
Last reply by cgk, almost 13 years ago:
Hello davemac thanks for your help. I found an explanation in German. See: http://www.rootz.de/2011/02/debian-6-0-squeeze-java-apps-haben-probleme-mit-netzwerkverbindungen/#more-1966 which links to http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=560044 it says to do sudo sed -i 's/net.ipv6.bindv6only\ =\ 1/net.ipv6.bindv6only\ =\ 0/' /etc/sysctl.d/bindv6only.conf sudo invoke-rc.d procps restart now greenfoot starts. Just to make it clear: my log starts with
Need A Hint: How to use a loop and array in...
By Loopy, with 3 replies.
Last reply by Loopy, almost 13 years ago:
I think I understand that. Thank you.
counter
By lbk14, with 3 replies.
Last reply by davmac, almost 13 years ago:
There are plenty of examples out there, see
tutorial #6
for instance.
Constructor
By Matt, with 5 replies.
Last reply by Matt, almost 13 years ago:
I tried it and it worked. Thanks for all your help
Reset atWorldEdge
By needcodehelp, with 1 reply.
Replied to by SPower, almost 13 years ago:
When you detected you 'fall off' an edge, you need to reset the world doing this: <Code Omitted>Replace 'MyWorld' by your own subclass of World.
Stopping at walls
By TheYoung0ne, with 8 replies.
Last reply by TheYoung0ne, almost 13 years ago:
Thanks for all of your help...everything works as intended.
How do you make a method to check if on ground?
By kevinchaoo, with 8 replies.
Last reply by davmac, almost 13 years ago:
For reference:
First Jumping video tutorial
Second Jumping video tutorial
Animation problems
By dlanni, with 3 replies.
Last reply by dlanni, almost 13 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, almost 13 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, almost 13 years ago:
Thank you, will try!
How do you detect whether certain actors are gone
By kartikitrak, with 5 replies.
Last reply by kartikitrak, almost 13 years ago:
Thanks so much! It worked perfectly : D
A strange NullPointer
By darkmist255, with 3 replies.
Last reply by darkmist255, almost 13 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, almost 13 years ago:
Then 'p' is null.
971
972
973
974
975
976
977
X