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
Update Text
By MichaelMac, with 7 replies.
Last reply by Yehuda, over 9 years ago:
danpost wrote...
Yes, I agree. I should have said 'cannot
easily
acquire' them. For a novice, it is virtually impossible -- so, not far from the truth.
I guess so. The following method can be used to get the dimensions of text (I just created it myself, I wasn't sure what to put as the FontRenderContext or what to use for the Graphics2D):
its saying that im missing a return statement
By KSIassassinTB, with 2 replies.
Last reply by Yehuda, over 9 years ago:
With the way you coded the method you should change line 1 to: <Code Omitted>You created a boolean method which should return a boolean. Like this: <Code Omitted>Since this method is only one line long/short and it's not returning anything that has private access it's unnecessary.
Help return boolean if any key is/isn't down?
By alittle_bit, with 7 replies.
Last reply by Yehuda, over 9 years ago:
Last time I tested it I just changed an already existing 'if' statement which switched the world - when I returned back to the original world it didn't work. Just now I made it pause the execution and it worked. But pressing the "Tab" button didn't do anything. I didn't test every button but I purposely tested the "Tab" button because I know that it doesn't work by isKeyDown even though it's in the API (
Class Greenfoot
).
I didn't post any code since I only saw your post after posting mine.
Help reducing redundant map creation methods...
By alittle_bit, with 15 replies.
Last reply by Yehuda, over 9 years ago:
SR20 wrote...
@danpost Get a life faggot, you just don't know my intellectual capacity in java code retard!
What did he (danpost) do wrong?
danpost wrote...
@SR20 The coding SR20 is providing is not java code -- it appears to be javascript code, which is different from what greenfoot uses. The second code-set given IS java code; however, when using greenfoot, the normal 'public static void main(String vars)' method is not (normally) created by the user -- and certainly not by those who know nothing about java and are just starting out in greenfoot.
What this says is th
Need help with drawn image when it scrolls
By chlo, with 2 replies.
Last reply by chlo, over 9 years ago:
It works great!! thank you so much.
Trick the Turtle Game
By MarkLusala, with 1 reply.
Replied to by danpost, over 9 years ago:
You should start by creating the World and Actor classes you will need for the game. Then build the game up from there. At this point, there is no code to help you with and the assistance requested appears to be too general in nature. We can help with specific issues -- one at a time; but, in general, code must be provided as well as a detailed explanation of what it should do as compared to what it is currently doing.
Global Variable Issues
By ConfusedCairns, with 5 replies.
Last reply by danpost, over 9 years ago:
ConfusedCairns wrote...
The code is accepted but I am still stuck regarding where the ((Piano)getWorld()).addPressedKey(key); is placed. I am thinking this line is vital in order for the rest of the code to work.
A Key object needs to call the method when that key is played.
How to use isKeyDown() to add only one object
By brookexann, with 6 replies.
Last reply by Super_Hippo, over 9 years ago:
Yes. You can always only edit/remove your post if it is the very last in the discussion. If there is any other post below, it is not working anymore.
Kinect & OSX El Capitan 10.11.6
By mtranchida, with no replies.
Hi All, I've reached CH 12 in the Greenfoot text with my class and would love to be able to install the provided MacPorts. The problem I am running into is that the Greenfoot site does not provide a MacPort download for my current operating system version( El Capitan - 10.11.6). When I try to download the latest (Lion) MacPort provided my computer prevents it from installing because it recognizes that it was created for a different OS version. I did find this article online: https://creativevreality.wordpress.com/2016/01/26/setting-up-the-kinect-on-osx-el-capitan/ but am hesitant to try it. Has anyone here? Greenfoot authors? Can you provide assistance?
How do I add just one Igloo every 100 actions?
By jbush15, with 6 replies.
Last reply by SR20, over 9 years ago:
All good
All Good
My Health Bar doesn't work.
By Zaya_Neal, with 5 replies.
Last reply by SR20, over 9 years ago:
No Worries
No Worries
isTouching problem with greenfoot game
By alpal, with 4 replies.
Last reply by SR20, over 9 years ago:
No worries
Change actor image
By r@nD0m, with 3 replies.
Last reply by danpost, over 9 years ago:
Did you notice the names of the files that were trying to be found? Color02.png Color01.png How do they compare with the real names of the files? Correct line 39 so that it looks for the files using the correct names.
How do I add 100 health every time my snowman collects an igloo
By jbush15, with 2 replies.
Last reply by danpost, over 9 years ago:
You need to get a reference to the Health object in the world and adjust its value: <Code Omitted>(replace line 5 with these two lines).
Need help to create counter
By skitlesas, with 1 reply.
Replied to by danpost, over 9 years ago:
For more uniformly placed blocks, change your prepare method to this: <Code Omitted> I do not see anything related to a counter anywhere in the given code (nothing added to the world, no collision detection and not even a class for the counter). Please refer to my
350
351
352
353
354
355
356
X