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
Beginner Programmer, please help!
By shutterbugemily, with 7 replies.
Last reply by rjl8789, about 13 years ago:
Would it be possible from someone to show the completed version, so you can see it actually running in Greenfoot?
Can't get collision detection to work!!
By keiko1dog, with 5 replies.
Last reply by davmac, about 13 years ago:
Do you have a reverseY() method in your Orb class? (also, when you get a compiler error, please tell us on which line of your code the problem is! Thanks). Also, your code seems to have been copied wrongly. You would get plenty of other errors first if you tried to compile the exact code you posted! You have
a couple of
an extra '}' symbol. Make sure you copy and paste the exact code!
NEW-B
By rootypoo, with 5 replies.
Last reply by rootypoo, about 13 years ago:
THanks everyone! I'll check those resources out n see what I can understand. I appreciate the replies!
Using variable of an Actor class in an other Actor class
By NEEDhelp, with 1 reply.
Replied to by davmac, about 13 years ago:
Read
this tutorial
, if you haven't already. It may be of some benefit to go through the
other tutorials
too. Once you've done that much, if you still don't understand, post some specific questions here.
Java Correction
By Steve_888, with 5 replies.
Last reply by danpost, about 13 years ago:
You should be able to use the same code (basically). You just need an integer instance variable to control the general direction (1 for left to right (increasing x), and -1 for right to left (decreasing x)). If your robot
faces
left or right, you can reverse the image (mirrorVertically()) to show it facing the other way.
nullpointerexception help
By ardwennem2, with 13 replies.
Last reply by ardwennem2, about 13 years ago:
I already figured it out, but thanx anyway, couldn't have done it without you
Get mouse momentum
By darkmist255, with 8 replies.
Last reply by darkmist255, about 13 years ago:
Thanks :D! I got it all finished up
here
Greenfoot.setWorld()
By darkmist255, with 2 replies.
Last reply by darkmist255, about 13 years ago:
Ahaha, thanks, I forgot I needed to create a new one since there wasn't one there yet. If it doesn't work as a world I'll make it an actor. Thanks :D.
I can't run greenfoot on windows 7.
By figi, with 10 replies.
Last reply by figi, about 13 years ago:
Oki doki i'll send an email tomorrow. Thx for help.
Are Greenfoot games sellable?
By Royalblue64, with 12 replies.
Last reply by davmac, about 13 years ago:
Royalblue64 wrote...
By this, do you mean any sound files?
I mean any sounds files in mp3 format. Greenfoot supports mp3 sound via the JLayer library. Other sounds (.wav format) that it plays do not require JLayer.
Wombat, find leaves?
By moncraw, with 1 reply.
Replied to by davmac, about 13 years ago:
Have a look at the methods in the
API documentation
for the Actor class, and see which ones might be useful. Have a go at trying to use them. If you run into problems or have specific questions, post here.
non-static method cannot be referenced from a static context
By darkmist255, with 20 replies.
Last reply by darkmist255, about 13 years ago:
Huzzah! I just had the "non-static method" problem for another scenario, but was able to fix it on my own! I'm making lots of progress, thanks again guys :D.
&& operator with strings?
By darkmist255, with 8 replies.
Last reply by AwesomeNameGuy, about 13 years ago:
I think that == seems to work sometimes because Java handles strings a little differently than most objects, it has something called a "String Literal Pool" where it has all the strings that are coded into your program already sitting there in memory, or something like that, and it is optimized to use as few strings as possible, so if you have literal strings in your code, and you reference them, a lot of the time you will be referencing the same string anyway and == works. But other times it won't work. Just remeber the difference between references, primitives, and objects. == compares refer
java.lang.NullPointerException
By darkmist255, with 4 replies.
Last reply by darkmist255, about 13 years ago:
Thanks! And I would say that doing "if (someVariable != null)" could help with many methods that can return null?
How to use fillOval?
By rgadue, with 9 replies.
Last reply by keiko1dog, about 13 years ago:
Thank you so much for the explanations!!!!! they helped me understand and figure it out!!! Thanks again AwesomeNameGuy and DanPost!! I really appreciate your help!
1026
1027
1028
1029
1030
1031
1032
X