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
Walls in a maze
By HelpMehCode, with 2 replies.
Last reply by HelpMehCode, about 6 years ago:
Thank you so much for the correction for "Color(BLACK)". I fixed that and there is a different error. I am posting a new thread of the updated error code. Again, thank you so much.
Spawning objects at random?
By whattheheck, with 1 reply.
Replied to by danpost, about 6 years ago:
You cannot spawn objects from inside their class. Well, you can -- but the first must be spawned from outside the class and then they will spawn at an exponential rate that is not wanted. Have your world class randomly spawn the obstacles. The disappearing part can be done in the class of the obstacle.
showText error
By Mattzh, with 2 replies.
Last reply by danpost, about 6 years ago:
Switch the order of lines 62 and 63; then move line 21 to be between those lines. The error was trying to show text on the
null
reference returned by
getWorld
, as the actor was removed from the world already.
Help with recursion
By Zestix, with 14 replies.
Last reply by danpost, about 6 years ago:
Zestix wrote...
Pardon, it's in line 20. No need to help, though
Oh. So,
ListNode
is the
BinaryTree
class -- not
List
. I still do not see a 2nd constructor, however. Good luck.
How to
By HarveyP30, with 4 replies.
Last reply by HarveyP30, about 6 years ago:
Oh nevermind, I resolved it by having for conditions in an if using ||.
Error with import.java.awt.* and import.greenfoot.*
By Zachary2304, with 1 reply.
Replied to by danpost, about 6 years ago:
You are probably using a newer version of greenfoot at home. Try commenting out line 2 and line 24. Next to line 24, add the following line: <Code Omitted>
Best score and current score
By Daav3r, with 3 replies.
Last reply by danpost, about 6 years ago:
Daav3r wrote...
Everything in greenfoot
Have you imported the
HighScores
class and read its description?
Clicking on the transparent part of an actor
By Marcel_C, with 6 replies.
Last reply by Marcel_C, about 6 years ago:
Oh man thank you so much it works :D. I really appreciate your help!!
Images not showing
By ezio4864, with 3 replies.
Last reply by ezio4864, about 6 years ago:
I increased the size of the image and it worked. Perhaps the image size was too small? Anyway, thank you for your time!
push actor
By Starlord_20, with 6 replies.
Last reply by Starlord_20, about 6 years ago:
ok thank you!
cannot find class
By Starlord_20, with 3 replies.
Last reply by danpost, about 6 years ago:
I think you would have been fine replacing your original lines 4 and 5 with: <Code Omitted>
Super_Hippo? seggsschreibne
By moraidai, with 1 reply.
Replied to by moraidai, about 6 years ago:
moraidai wrote...
Seggsschreibne? LG Manfred
allo
Victory Screen not showing
By ezio4864, with 3 replies.
Last reply by moraidai, about 6 years ago:
So, keep the intersection code in one of the two classes. And use a reference to your test class and don’t create a new one every time. Let’s say you keep it in your Shot class: ? 1 2 3 4 5 6 if (AI1 != fromage) { ((test)baguetted()).deduct(); getWorld().rfromaget(AI1); getWorld().croissantObject(this); }
Error while writing, can't compile Greenfoot projects
By KNACKon, with 1 reply.
Replied to by moraidai, about 6 years ago:
i think u shopuld u some fromage et le baguette "Error while writing ...class...: The process is not possible with a file that has an open environment which is assigned to a different user." u have to "setposition to =fromage"
Super_Hippo?
By moraidai, with no replies.
BOnjour le Super_Hippo cava?
136
137
138
139
140
141
142
X