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
Help! JComboBox and JCheckBox
By riachiyo, with 1 reply.
Replied to by danpost, over 11 years ago:
This should work. Change the 'itemStateChanged' method to this: <Code Omitted>Appending the following to your 'actionPerformed' method should solve the rest:
getActorAtOffset method?
By Holladerwaldelf, with 2 replies.
Last reply by Holladerwaldelf, over 11 years ago:
thanks a lot! now it works.
Greenfoot Background error
By biferony, with 2 replies.
Last reply by biferony, over 11 years ago:
danpost wrote...
Double-check the spelling (including capitalization) on your file names (including suffixes). The properties of the file should show the exact suffix.
Thanks! I had the first letters capitalized in the code, but not in the files so I didn't notice.
Getting an int from another class trouble
By Krhanos, with 5 replies.
Last reply by davmac, over 11 years ago:
<Code Omitted> This is covered in tutorial #6
NullPointerException
By DarkGhost, with 5 replies.
Last reply by DarkGhost, over 11 years ago:
Awesome thank you so much that works! :D Thanks! <Image Omitted>
System.in
By supasid, with 3 replies.
Last reply by danpost, over 11 years ago:
Input (as far as computers are concerned) is defined as any means by which external data is supplied to a program. This can be, for some examples, through reading of a disk file, input from the keyboard, or through a network link. If the console contains data, then some program supplied that data to it. Your keystrokes do not magically appear on the console and your program does acquire data from the console. It is NOT an input device. Maybe these other environments have underlying code that takes your keyboard input and displays (or outputs) it to the console. It would not be difficult
nullpointer exception array of actors
By Holladerwaldelf, with 2 replies.
Last reply by Holladerwaldelf, over 11 years ago:
i told you it was a dumb question ;-) thanks a lot! that solved the problem.
Help Needed! non-static method getx() cannot be referenced from a static context
By TheGoldenBucket, with 1 reply.
Replied to by davmac, over 11 years ago:
I take it that PlayerChar is a class. When you say 'PlayerChar.getX()', you are asking, therefore, for the location of a class. Classes do not have a location. Actors - i.e. instances of classes - have a location. You need to get a reference to the PlayerChar actor that you want the location of, and call getX() on that. See for example
tutorial #6
.
Game instantly goes to GameWon method
By Krhanos, with 1 reply.
Replied to by Krhanos, over 11 years ago:
Nvm i fixed it lol <Code Omitted>needs to be <Code Omitted>
How to tell if another actor is clicked?
By NAZZA, with 2 replies.
Last reply by NAZZA, over 11 years ago:
Thanks for the help.
How to set values?
By RagingAsian, with 16 replies.
Last reply by davmac, over 11 years ago:
java.lang.NullPointerException at Greeps.movement(Greeps.java:93)
This is telling you that you are attempting to de-reference a null reference on line 93 of your Greeps class. First step: look at the line and see what might be null. <Code Omitted> ... the only thing on the left-hand-side of a dot operator is 'getWorld()', so that must be returning null. Which means: your object isn't in any world. Which probably means: your 'Small' subclass is removing 'this' instance from the world before it calls the 'move
WALKING LOOP!? Please Help!
By Prish950, with 2 replies.
Last reply by Prish950, over 11 years ago:
Thank You that worked ;) awesome!!
Help!!!
By moraisai, with 2 replies.
Last reply by moraisai, over 11 years ago:
thanks it works
Displaying the players health value
By DarkGhost, with 2 replies.
Last reply by DarkGhost, over 11 years ago:
Thanks Hippo, I've got it working now :)
How can I stop my timer?
By Bluefoot98, with 3 replies.
Last reply by Bluefoot98, over 11 years ago:
Ah, thanks, it works!
588
589
590
591
592
593
594
X