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
Dragging desktop icons into a JFrame/Component
By Kartoffelbrot, with 5 replies.
Last reply by Kartoffelbrot, over 11 years ago:
Thank you
How to play your game on a non-school computer
By jmdreyer, with 2 replies.
Last reply by davmac, over 11 years ago:
(In any case, the problem is that you're trying to open a jar or gfar file, but the file contents have already been extracted. Open the project itself - i.e. the extracted folder - not the jar/gfar file).
is there a more efficient way of doing this?
By RUMMAKER, with 5 replies.
Last reply by RUMMAKER, over 11 years ago:
:D thx, danpost. Il keep an eye out.
Gradually increasing speed
By jmdreyer, with 14 replies.
Last reply by jmdreyer, over 11 years ago:
thank you
Incompatible types
By Midas97, with 6 replies.
Last reply by danpost, over 11 years ago:
'getOneIntersectingObject' returns an Object, not a List (or a boolean). You can use 'getIntersectingObjects' which returns a List object (that 'isEmpty' will work on) or you can use change the line to: <Code Omitted>
Make Actor Stop When it Touches Another Actor
By Arichman, with 1 reply.
Replied to by danpost, over 11 years ago:
Basically, when after moving, if it is touching the barrier, move back:
Using enum in greenfoot
By Atlantiz, with 1 reply.
Replied to by davmac, over 11 years ago:
-Xdiags:verbose is a compiler option. Greenfoot doesn't support setting it, so for now you should just ignore it. I believe you only get this when you also get error messages, so you should concentrate on fixing the errors and then this warning will also go away.
Advancing between scenes.
By BeYouself, with 3 replies.
Last reply by danpost, over 11 years ago:
BeYouself wrote...
Thanks a lot. Could you post the code for the Buttons discussion
I have a new BGMusic Actor support class for background music that I want to get out here. I just now got an idea of how I can demo it. I will work on it in the near future.
HELP!!
By molsbex, with 3 replies.
Last reply by danpost, over 11 years ago:
GRIFFIN wrote...
This is the collision code you will want to put in the spider: <Code Omitted>And you probably should specify the type of movement you are looking for.
Lines 1 and 2 above are reversed from what they should be.
getWorld Error
By kdbailey, with 6 replies.
Last reply by Super_Hippo, over 11 years ago:
If you want to do something over timer, you need an 'act' method. If you play at a 'normal' speed, this 300 will be about 5-6 seconds or something. If you want exactly 6 seconds, you can also use the milliseconds from the system which are unaffected by the Greenfoot Speed. But then, the game will be different if you change the speed. So I would suggest to just adjust the 300 to the value you want and try this code:
java.lang.OutOfMemoryError: Java heap space
By GRIFFIN, with 30 replies.
Last reply by GRIFFIN, over 11 years ago:
Ok I got it to work finally. Thanks for all the help!
Help with getObjectsInRange()
By SAAEngineer, with 1 reply.
Replied to by SAAEngineer, over 11 years ago:
Help pleas
Tic Tac Toe Random Corner Method not Random
By JasonZhu, with 6 replies.
Last reply by JasonZhu, over 11 years ago:
I will. Thanks davmac. I know that its more of an internal error rather than wrong coding on that specific practice.
Game of Life Iteration Trouble
By JasonZhu, with 6 replies.
Last reply by JasonZhu, over 11 years ago:
Thank you for your suggestions. I understand it now. And thanks for a simpler method, I didn't realize that it took that much room until you pointed it out.
Declaring a color variable
By Peach, with 4 replies.
Last reply by davmac, over 11 years ago:
Don't do this: <Code Omitted> Just do this: <Code Omitted> The first example just creates an extra object needlessly.
683
684
685
686
687
688
689
X