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
method does nothing
By ehx, with 9 replies.
Last reply by danpost, over 12 years ago:
An effective solution would be to remove the control panel altogether and declare the 'contRob' field as 'static' in your Roboter class. By making the field a 'static' one, you are allowing all objects of the class to share the same field (instead of separate non-static fields that can contain different values for each object). Then, in the 'act' method of the Roboter class:
I'm having some issues with some Move methods...
By MusicPenguin, with 16 replies.
Last reply by danpost, over 12 years ago:
MusicPenguin wrote...
Did you just have a while(true) loop going in your Shifty class?
No. The act method has the keystroke detection and calls a method called 'shift' with the direction. The 'shift' method has a double-'for' loop -- the outer loop for the four axes of movement and the other for getting the tiles along each axis and moving them. Also a local field is declared before the inner 'for' loop to track the number of tiles found along the second axis (so the new tile positions can be easily determined).
I need the transparency to continue to decrease when it touches another object
By meganw21, with 1 reply.
Replied to by danpost, over 12 years ago:
Please show what you have so far with changing the transparency (or what you have tried).
Please help - implementing different scoring based on...
By blangley83, with 20 replies.
Last reply by blangley83, over 12 years ago:
Wow. Just wow. Thank you, Dan!
Can't figure out how to get the x,y of another actor
By Chernabog42, with 19 replies.
Last reply by Chernabog42, over 12 years ago:
Thank you both for your answers. For now, I'm going to use that last solution for my project, but all of your answers really helped me look at what was going on.
Need Help With a Class Project.
By meganw21, with 3 replies.
Last reply by danpost, over 12 years ago:
Where are the 'randomWalk' and 'smellFlower' methods? (at least try something) BTW -- what you have in your 'act' method appears to be what you might use for the 'randomWalk' method. The act method should pretty much state what the assignment asks for: if it can see a Flower object, smell the Flower object; else, walk randomly.
can't spot the error green foot says cannot find symbol-method counterScore(Int)
By FlatbushNYC, with 3 replies.
Last reply by FlatbushNYC, over 12 years ago:
the problem was I didn't have counterScore() in my space that fix the problem thanks.
Display Health Problem
By SB001, with 8 replies.
Last reply by danpost, over 12 years ago:
Remove 'int' from line 26. You want to set the already-existing 'catsHealth' field to the value acquired from the 'cat1' object, not create a new local variable that just goes to the garbage collector after being set.
Greenfoot To Java Commands
By TehRyan, with 3 replies.
Last reply by dan11, over 12 years ago:
If you just want to port a scenario, under share in Greenfoot there is an "application" option that will put it into a .jar file. That file is runnable, but you can put it into a .exe with launch4j and give it an icon.
Here
is my Snake game as an .exe file with an icon.
I am not able to get any information from the mouse
By sengst, with 3 replies.
Last reply by sengst, over 12 years ago:
It worked! Thanks again!
Explanation of "super"
By Amy, with 10 replies.
Last reply by NikZ, over 12 years ago:
trimil wrote...
The keyword super can also be used to access the super-class's methods like this:
As you can see "
super
" has access to the
super
-class it belongs to.
Some one help me spot the issues?
By Amightymuffin, with 2 replies.
Last reply by Amightymuffin, over 12 years ago:
thanks for the help i forgot about the act() function i think this now crashes when the dolphins hit the end of the screen?
Help with bringing object back in my world
By memara, with 3 replies.
Last reply by kinobi, over 12 years ago:
the first to Name's where a "new" is in front sorry
Showing explosions when all enemies removed
By davemib123, with 4 replies.
Last reply by danpost, over 12 years ago:
That should be sufficient.
HELP!!! Scoreboard not working!!
By Ichliebejenni, with 8 replies.
Last reply by Ichliebejenni, over 12 years ago:
thanks ill try and work it out :)
667
668
669
670
671
672
673
X