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
GetX()
By Advenging, with 11 replies.
Last reply by davmac, almost 12 years ago:
And: you
can
access non-public methods / variables from another class if they are in the same "package", as long as they aren't declared private. This is a Java idiom which isn't really represented in Greenfoot; all your classes are in the same package. But you can't call non-public methods from a class in a different package. For instance, there are some methods in the Actor class which are not public and which you can't call. (They're not listed in the API documentation - because you are not meant to be able to call them). Using 'static' works if there is only one object you are in
how to make one object go through one edge and go out the other
By nooby123, with 10 replies.
Last reply by danpost, almost 12 years ago:
Thanks, Davin. I'll take a look at it!
How to change a objects class.
By kiarocks, with 2 replies.
Last reply by kiarocks, almost 12 years ago:
ok
Where is the Scenario Information in version 210
By dbal, with 1 reply.
Replied to by dbal, almost 12 years ago:
One of my students found it on the Scenario menu. Dick Baldwin
Randomly Generated Map
By w1llis, with 8 replies.
Last reply by w1llis, almost 12 years ago:
Thanks Wagnerf and DonaldDuck. I'm slowly re-learning Java :)
setBackground method
By ianking, with 10 replies.
Last reply by ianking, almost 12 years ago:
Aha - makes sense now thanks. Now to get the rest of the game to work.....
How to use System.out.println()
By kiarocks, with 10 replies.
Last reply by mjrb4, almost 12 years ago:
There's a full list here: http://www.java-tips.org/java-se-tips/java.lang/character-escape-codes-in-java.html \n, \\ and \" are the ones you'll most commonly use.
Kinect for the Mac
By Mulzie88, with no replies.
Does anyone know when Greenfoot is releasing the frameware and drivers (which they have done for Windows and Ubuntu), as I need to use it soon for coursework!
Making Password Fields
By ateichner, with 6 replies.
Last reply by ateichner, almost 12 years ago:
Thanks for the advice... I decided to use
bourne's
GUI and then modify it to act as two components that work as a team to identify a username/ password combo. Thanks!
Start Greenfoot in Code?
By Locomotion15, with 11 replies.
Last reply by Locomotion15, almost 12 years ago:
Thank you all! I will test both of these out shortly and announce whether or not they work.
Problem with arrays? String[] whiteKeys?
By manster2008, with 13 replies.
Last reply by mjrb4, almost 12 years ago:
You're looking at
Newton's law of universal gravitation
if you want to do some reading around :-)
Game Development Team Project
By webmessia, with 7 replies.
Last reply by Evmorov, almost 12 years ago:
-
On Adding to Lists
By danpost, with 3 replies.
Last reply by mjrb4, almost 12 years ago:
When you declare a field such as you had originally, you're essentially declaring a space that fits a particular type, in this case a list. You haven't actually put a list there yet, that comes when you do: <Code Omitted>That way you've created a new object and assigned it to listData, and you can manipulate it by calling methods (such as add.) When you don't create the object you're trying to manipulate an object that's not there, or "null" - hence NullPointerException. When you see an exception like that, that's almost always what will be going on!
card games
By stokers, with 2 replies.
Last reply by mjrb4, almost 12 years ago:
If you still want more help with this then it'd help to be a bit more specific - what have you tried so far? Have you got any code that we can work from? Generally speaking, if you have a class you can implement the equals() method and subsequently call it to work out if two particular objects are equal, but how to implement it depends on the context!
Checking for values of things in range
By kiarocks, with 59 replies.
Last reply by kiarocks, almost 12 years ago:
im back
1026
1027
1028
1029
1030
1031
1032
X