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
How to use System.out.println()
By kiarocks, with 10 replies.
Last reply by mjrb4, over 13 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, over 13 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, over 13 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, over 13 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, over 13 years ago:
-
On Adding to Lists
By danpost, with 3 replies.
Last reply by mjrb4, over 13 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, over 13 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, over 13 years ago:
im back
Quellcode
By MyLove, with 1 reply.
Replied to by davmac, over 13 years ago:
Take a look at the "balloons" scenario that comes with Greenfoot. The "ScoreBoard" class shows you how to make a "Game Over" window.
On fixing 'Infect'
By danpost, with 83 replies.
Last reply by danpost, over 13 years ago:
OK, try: 'infect(infectChance * getInfectChance());' (missed the parenthesis after 'getInfectChance')
Scrolling
By F-L-Undead, with 9 replies.
Last reply by davmac, over 13 years ago:
F-L-Undead, let's put it this way: if you don't use "synchronized" on those methods, then you're messing with forces you don't understand :) It will probably work most of the time, but sometimes, just occasionally, it will go mysteriously wrong... unless you use "synchronized". You don't have to understand what it does, and you don't have to use it in your own code; just in the two methods in ScrollingListener.
How to recognize left-clicking even if the mosue isn't moving...
By manster2008, with 7 replies.
Last reply by davmac, over 13 years ago:
You can't do that exactly in Java. You have a few options: First option: store the values in a HashMap eg: <Code Omitted> For this to work you'll need to import the HashMap class at the top of your class: <Code Omitted>
Scenario Information
By F-L-Undead, with 2 replies.
Last reply by davmac, over 13 years ago:
Choose "Scenario Information" under the "Scenario" menu.
How can I upload games?
By MyHeartRocksNRolls, with 3 replies.
Last reply by mjrb4, over 13 years ago:
In the newest version of Greenfoot, you don't even need to use the menu - there's a big share button in the top right :-)
1043
1044
1045
1046
1047
1048
1049
X