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
NEW-B
By rootypoo, with 5 replies.
Last reply by rootypoo, almost 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, almost 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, almost 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, almost 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, almost 13 years ago:
Thanks :D! I got it all finished up
here
Greenfoot.setWorld()
By darkmist255, with 2 replies.
Last reply by darkmist255, almost 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, almost 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, almost 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, almost 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, almost 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, almost 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, almost 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, almost 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!
What's Wrong?I want the GreenfootImage Class
By Upupzealot, with 6 replies.
Last reply by davmac, almost 13 years ago:
Upupzealot: What code did you try, and what error message did you get?
Compiler Warning (continued)
By sjaaksm, with 2 replies.
Last reply by sjaaksm, almost 13 years ago:
I know which method causes the warning, and indeed, it has to do with generics. But whether or not the warning will pop-up seems to depend on the jdk that is used Btw, the link to the Ausgangsszenario is: http://greenroom.greenfoot.org/resources/51 It would be nice if the code could be adjusted in such a way that the warning is not given anymore. Sjaak
1024
1025
1026
1027
1028
1029
1030
X