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
"if" Statement?!!!
By ManiHallam, with 8 replies.
Last reply by danpost, about 14 years ago:
I think that since each click can be picked up on individually, that you can still have the method in the Keypad class. You will need a 'static String' variable to collect the characters. A static variable is a 'class' variable (not an object or instance one). All the classes will have access to that same individual variable. The Keypad method would look something like this:
Ich weiß nicht
By Cocky, with 21 replies.
Last reply by Cocky, about 14 years ago:
ich habe es schon herausgefunden.
Create delay for one Actor
By SPower, with 12 replies.
Last reply by SPower, about 14 years ago:
Sorry MatheMagician, I didn't read your code really good.
Private Message!!!
By ManiHallam, with 5 replies.
Last reply by ManiHallam, about 14 years ago:
So have I. haha, LoL. You reminded myself.
Signing Applets
By kiarocks, with 5 replies.
Last reply by kiarocks, about 14 years ago:
Yep!
Why is this throwing a NullPointerException?
By darkmist255, with 3 replies.
Last reply by darkmist255, about 14 years ago:
That's hilarious, I removed that in my code when I figured out the problem, I never even realized how backwards that was. Oh the joys of small changes causing big problems.
How can I make a pause between two action of methods (in Act method)?
By ManiHallam, with 37 replies.
Last reply by danpost, about 14 years ago:
Try this before going on: use this statement in the Counter class (the last line in the update() method) <Code Omitted>
One Method all together
By DPD4AU, with 3 replies.
Last reply by danpost, about 14 years ago:
See my response in the discussion
Creating a method
.
Creating a method
By DPD4AU, with 5 replies.
Last reply by danpost, about 14 years ago:
Would this work: <Code Omitted>
Play and pause game greenfoot
By isaiasdd, with 6 replies.
Last reply by davmac, about 14 years ago:
Check the "controls" menu; the shortcuts are listed there.
Error at setLocation(mouse.getX(), mouse.getY());
By Reck, with 3 replies.
Last reply by davmac, about 14 years ago:
Better to use this: <Code Omitted> (Because getMouseInfo() can in some cases still return null even if mouseMoved() returns true).
How to disappear a Coin?
By valaji_hetal, with 3 replies.
Last reply by danpost, about 14 years ago:
Do not have time to answer your questions, now. Will respond later this evening if noone has helped you by then. Best regards.
Jar doesn't find file
By Lakorta, with no replies.
Hi, I have a little problem with the .jar file from my Greenfoot project. I load a file (map.dat) with "BufferedReader br = new BufferedReader(new FileReader("data/map.dat"));". It works really fine, until I compile my project to a .jar file. Then it couldn't find the map.dat. If I use the complete path /home/lakorta/greenfoot/scenarios/game/data/map.dat (Windows: C:\...\Greenfoot\scenarios\game\data\map.dat) he could load it. Please help!
How can i make a global integer
By ChilloManiac, with 4 replies.
Last reply by danpost, about 14 years ago:
You need to use the reference to the world, not the class name of the world in line 6 -- change CrabWorld.getObjects... to wrold.getObjects (that is how you spelled it).
getRandomNumber
By Moritz, with 5 replies.
Last reply by MatheMagician, about 14 years ago:
Moritz, something I didn't mention is that my method could return 20 and it could return 30.
945
946
947
948
949
950
951
X