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
messing around with actors again
By Alwin_Gerrits, with 11 replies.
Last reply by Alwin_Gerrits, about 12 years ago:
Ow dang, so that's what's up. K, thanks davmac. I'm prety sure I get what caused my problem now.
Need help with spring/trampoline object
By A1234, with 3 replies.
Last reply by danpost, about 12 years ago:
There is too much I would change, not only in this class, but in other classes as well. I would have only one Key class and only one Door class; also, I would have only one or two Shot classes. Then, I do not know if you have one or not, but I would have your level classes extend a general Level class. All these changes, plus what needs corrected in this class, would drastically alter its code and take an awful lot of time. As it is right now, fixing it would also take some time (and a lot of headache trying to comprehend what is going on there). I do not think I want to go there, as ever
Disappearing at both edges of the world?
By DiplomatikCow, with 3 replies.
Last reply by DiplomatikCow, about 12 years ago:
Thank you, I got it figured out.
advancing to next level
By dangwang, with 6 replies.
Last reply by Alwin_Gerrits, about 12 years ago:
If your next level is a world you could use the Greenfoot.setWorld(new LEVEL_2()) command.
Moving Actor with arrow keys
By Pizza020, with 2 replies.
Last reply by Alwin_Gerrits, about 12 years ago:
Shouldn't the actor allso be able to go down?
Please help me with this error
By coder04, with 4 replies.
Last reply by danpost, about 12 years ago:
Give yourself a health value of 3 to start: <Code Omitted>Create a method, called from the act method, called checkLaser to detect and remove Laser objects and, when detected, decrease health and check for death (health == 0).
Stop the Time
By NiKu, with 2 replies.
Last reply by danpost, about 12 years ago:
You could use a static array to hold the times for each level. If you have a superclass for you levels between them and the World class, that would be the best place for it. In the constructor of each level, have the negative value of the current time set to its element in the array; and, add the new current time when the level ends,
centering JOptionPane message
By Alwin_Gerrits, with 4 replies.
Last reply by Alwin_Gerrits, about 12 years ago:
True, I think just leaving JOptionPane might be better, but seen I'm using it allthroughout my game I don't think it will look well if I start using a differend looking panel all of the sudden. Thanks though danpost, I'll defiëntly keep it in mind for future projects.
A complicated problem with scores
By GreenCompiler, with 9 replies.
Last reply by GreenCompiler, about 12 years ago:
Thanks for all the advice you've given me. ^^ I've been able to solve the problems I had now. It's still a bit rough around the edges but my game is doing what its supposed to do now.
Using the built in ScoreBoard + UserInfo to track top scores
By Gish, with 2 replies.
Last reply by Gish, about 12 years ago:
I'm not sure how you do it, danpost, but you always seem to be able to help. I don't know why I overlooked that conditional statement for adding the scoreboard only once. I also tried this with a new user name, and it all seems to be working perfectly. Just a few more tweeks and Ill be ready to submit. Thanks again.
Changing font inside of a score counter
By RawbyTheSheeth, with 1 reply.
Replied to by danpost, about 12 years ago:
I do not know how easy it would be to change the default font of a new GreenfootImage object (if it is at all possible). However, I have a subclass for the GreenfootImage class that makes text images that use a given font. It is located in my
TextImage Support Class
scenario.
Need help with a scrolling world
By Sranang, with 1 reply.
Replied to by Super_Hippo, about 12 years ago:
<Code Omitted> You could do it like this.
Having difficulties with randomly moving objects
By cha0204, with 8 replies.
Last reply by Super_Hippo, about 12 years ago:
The 'resetBoolean' method is needed as you do it. (In my scenario I just set them to 'true' or 'false' every time, but you can also do it like this. The 'changeDirections' method... well, I was thinking of something like this:
jump
By amit_27980, with 1 reply.
Replied to by danpost, about 12 years ago:
What code have you tried?
New JFrame
By JetLennit, with 4 replies.
Last reply by NikZ, about 12 years ago:
Super_Hippo wrote...
I don't know what a JFrame is. I think I saw it once when testing out Eclipse, but I didn't understand anything there, so I moved back to Greenfoot where I don't need such things... Did you update to Java 8? Maybe this causes the problem like it blocks the storage. But it could be completely different, just an idea. ;)
It is a pop up box/frame. Add JComponent to it for content.
640
641
642
643
644
645
646
X