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
drawString
By thefutureisnow, with 5 replies.
Last reply by thefutureisnow, over 13 years ago:
Oh, now I get it. Thanks!!!
Pathfollower and detection of objects
By kartikitrak, with no replies.
Is it possible to make a chain of objects follow a predetermined path in greenfoot and still know that the individual objects in the chain are still seperate objects? For example, random types of orbs come out of no where and link to other orbs to form a chain and this chain follows a path. Luxor Evolved is a good example of this. In the game the orbs are spawned and then follow a path and link up on collision with another orb and then you're supposed to shoot the orbs with the corresponding color orb and when your shot blue orb touches a blue orb that was part of a chain both orbs remove themselves. (That was a lot of orbs) <Image Omitted>
Movement and Control
By kartikitrak, with 2 replies.
Last reply by kartikitrak, over 13 years ago:
OOPS. Forgot to read over my post before posting it. However you got the question I was asking. Thank you.
cannot find symbol-constructor
By Andriyanto, with 4 replies.
Last reply by Andriyanto, over 13 years ago:
ok thank you..i have solve an error..
How to loop sound, but only when the sound finished.
By TechWebLock, with 4 replies.
Last reply by davmac, over 13 years ago:
TechWebLock:
Ok you have lost me there, do I need to put this into a new "void"?
A what now? They're called
methods
. 'void' is just the return type! :)
World Switching
By thefutureisnow, with 2 replies.
Last reply by thefutureisnow, over 13 years ago:
Thanks!
Inheritance?
By kartikitrak, with 2 replies.
Last reply by kartikitrak, over 13 years ago:
Thanks so much. Works fine.
WANTED! : Good coder
By h123n, with 12 replies.
Last reply by danpost, over 13 years ago:
Thinking it through logically, to turn toward the
closest
pig, this is what needs done: 1) find the closest pig by starting at distance of 1 and incrementing distance until pigs found in range or out of range by this pseudo-code: <Code Omitted> 2) upon exiting the loop, pigs in range List will either be empty or ... not; close with this pseudo-code:
Light in a Dark Room
By RM6442, with 39 replies.
Last reply by danpost, over 13 years ago:
I posted an example with code for you to look at. It is
here
.
Help for mouse.
By h123n, with 4 replies.
Last reply by danpost, over 13 years ago:
You need an instance boolean variable (or field) to track 'mouse pressed on me, and not yet released' or 'dragging'. Set it to 'true' if mouse pressed on this object. Set it to 'false' if the mouse is clicked (released) anywhere (use 'null' as parameter). Write an 'if' block to follow the mouse (SPower's code, but using 'if (dragging && Greenfoot.mouseMoved(null)) {' in line 1).
Having trouble with get one object at offset
By Scoter_man1, with 2 replies.
Last reply by Scoter_man1, over 13 years ago:
OH, duh, that totally makes sense. Thank you very much danpost.
Lists
By JayWood860, with 6 replies.
Last reply by danpost, over 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, over 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, over 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, over 13 years ago:
I think I understand that. Thank you.
973
974
975
976
977
978
979
X