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
Buttons
By BeYouself, with 14 replies.
Last reply by danpost, over 11 years ago:
Can you drag the object around before clicking on 'Run'?
Hangman
By Peach, with 1 reply.
Replied to by danpost, over 11 years ago:
Not enough information and no apparent code attempt. Only thing I can say with what is given is "use either 'setLocation' or 'addObject'". I guess that 'drawString' or 'drawImage' would work also.
Long Strings
By cobarr, with 2 replies.
Last reply by cobarr, over 11 years ago:
Ah! Great, thanks for introducing me to the 'new line' escape sequence ('\n')!
Making a string disappear from screen
By cobarr, with 4 replies.
Last reply by cobarr, over 11 years ago:
Thank you! It works :)
Actor returning null
By dan11, with 2 replies.
Last reply by dan11, over 11 years ago:
Thank you very much, I even did it right in my other scenarios, don't know why I did that here.
Spam
By JetLennit, with 1 reply.
Replied to by davmac, over 11 years ago:
It's spam, plain and simple. As you can see it has been dealt with.
Create a String that disappears when RUN is clicked
By cobarr, with 1 reply.
Replied to by danpost, over 11 years ago:
There is a World class method called 'started'. It is by default an empty method; but is called when the project goes from a stopped state to a running state when that world is the active world. You can override the method in your world class an have it either remove the instruction actor or clear its image. <Code Omitted>
While loop in a world subclass crashes Greenfoot
By sp99, with 3 replies.
Last reply by Super_Hippo, over 11 years ago:
It is infinite since the program will never leave this loop. The 'loop' you want is probably the 'act' method. This is executed every act-cycle.
Choosing file frame
By Kartoffelbrot, with 2 replies.
Last reply by Kartoffelbrot, over 11 years ago:
Thank you!
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:
683
684
685
686
687
688
689
X