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
General movement
By QOP, with 1 reply.
Replied to by mattjames, about 11 years ago:
instead of "turn(3)" for up write setLocation(getX(),getY()-1); and for down write setLocation(getX(),getY()1);
Scenarios
By rabbids4ever, with 7 replies.
Last reply by rabbids4ever, about 11 years ago:
Don't worry about it!!! Finally figured it out!!! Thanks so much for putting up for my stupid easy to answer questions !!!!
Scanner Problems
By 8bitcarrotjuice, with 6 replies.
Last reply by davmac, about 11 years ago:
@danpost, my sincere apologies - the bad advice came from Gevater_Tod4711, not from you! (I just meant that making the code change that was suggested resulted in this NullPointerException occurring at runtime; most of what Gevater_Tod4711 was actually fine, though I strongly recommend initialising the strings instead of using substring to remove the 'null' part)
Change color
By dominicarrojado, with 2 replies.
Last reply by dominicarrojado, about 11 years ago:
Thanks!
Java High Level Programming
By anant.gaggar, with 3 replies.
Last reply by mjrb4, about 11 years ago:
JavaFX can do some (limited) 3D stuff, but isn't yet anywhere near the level where you would sensibly create a full 3D game with it - pretty much the only sensible option (at the scenegraph API level anyway) is JMonkey. Though as Davin said, comparatively few games of this type are created in Java - native languages such as C++ / C# are the usual choices (and indeed pretty much every Java 3D library delegates to native code at some point, otherwise it couldn't take advantage of any hardware acceleration.)
Single Player Pong
By RedCreeper, with 25 replies.
Last reply by RedCreeper, about 11 years ago:
Thank You danpost
Darkness Background
By dominicarrojado, with 15 replies.
Last reply by dominicarrojado, about 11 years ago:
Worled. THANKS! :D
Can I call method of different class. See the hierarchy.
By savanibharat, with 2 replies.
Last reply by davmac, about 11 years ago:
Yes, you can, if the method is public. You need a reference to the RandomBallPicker that you want to call the method on (unless the method is static). There is a tutorial covering this
here
.
Detecting an object within a square
By K_wow, with 29 replies.
Last reply by K_wow, about 11 years ago:
That's fixed it, thanks!
Need help - nullPointerException
By mukkainaresh, with 15 replies.
Last reply by danpost, about 11 years ago:
<Code Omitted>Broken down, this becomes (assuming there is at least one random picker in the world): <Code Omitted>When using the last codeset, you would need to 'import java.util.List;'.
Razer controller and Greenfoot
By Zamoht, with 10 replies.
Last reply by Zamoht, about 11 years ago:
Okay the problem was that I used the default Windows 7 "unzipper" (I think). I downloaded winrar and now it works or well it comes with the error "No gamepad found, are you sure it's plugged in?" since I haven't the controller nearby right now. Sorry for the trouble :( I will come back when I know if I can connect the controller. And not that it seems to be an issue but I get a warning in the Terminal Window: WARNING: Found unknown Windows version: Windows 7 Attempting to use default windows plug-in. Loading: net.java.games.input.DirectAndRawInputEnvironmentPlugin Thanks for the he
Reading/Editing .txts
By JetLennit, with 14 replies.
Last reply by davmac, about 11 years ago:
For example, lets say that the jar is in "C:\JarLocation\Jar.jar\" how would I save it to "C:\JarLocation\"?
Ah, I see what you mean. I think the first problem you have to solve is writing to a file generally. To get the location of the jar file is tricky. In BlueJ (and Greenfoot) we use code something like: Boot.class.getResource("Boot.class").toString() ... to get a kind of URL which has the location of the jar file (you can use any class name, it doesn't have to be Boot, but it must be inside the jar). The result looks something like this: jar:fi
Tutorials/Projects
By Avist, with 1 reply.
Replied to by Gevater_Tod4711, about 11 years ago:
You should have a look at the
Greenfoot Tutorials
. Or you can start with some easy games like 'crab' or 'breakout'.
I want to display message on world.
By savanibharat, with 3 replies.
Last reply by SPower, about 11 years ago:
You're welcome!
stop the run
By Avast, with 1 reply.
Replied to by danpost, about 11 years ago:
Look in the Greenfoot class API for the method you need.
794
795
796
797
798
799
800
X