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
Can I call method of different class. See the hierarchy.
By savanibharat, with 2 replies.
Last reply by davmac, almost 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, almost 11 years ago:
That's fixed it, thanks!
Need help - nullPointerException
By mukkainaresh, with 15 replies.
Last reply by danpost, almost 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, almost 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, almost 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, almost 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, almost 11 years ago:
You're welcome!
stop the run
By Avast, with 1 reply.
Replied to by danpost, almost 11 years ago:
Look in the Greenfoot class API for the method you need.
Help mee please !!!!!
By rabbids4ever, with 5 replies.
Last reply by danpost, almost 11 years ago:
You need to go to the Download page and download a version of Greenfoot. It is the Greenfoot application that, after installing, will open up the scenarios for you.
Easy save/ load game
By Crabbattle, with 4 replies.
Last reply by SPower, almost 11 years ago:
Well, you'll need to set ALOT of properties on your 'npc's and save and load them in your files, which won't be that easy. Considering that, creating a 'scripting egine' to create an enviroment, and setting the properties of your npcs using that. For an example, visit the
Nightmare emergence
scenario of Builderboy2005, which has a very good one. But if you want to create one yourself, you can use the code I just gave you (it's from my scripting engine). From experience, I can tell you it's not very easy. It will at least take a lot of time.
Counter help
By mattjames, with 10 replies.
Last reply by mattjames, almost 11 years ago:
Guys works well now thanks both of you!
Enemy Follow Player
By dominicarrojado, with 7 replies.
Last reply by dominicarrojado, almost 11 years ago:
Just the way I wanted to. Nice! Thanks!
How to use spritesheets for animations?
By K_wow, with 2 replies.
Last reply by K_wow, almost 11 years ago:
Ok, thanks for explaining it to me. I guess I'll just keep doing it the way I was, a bunch of separate images named according to the motion. Thanks again!
Website
By RedCreeper, with 2 replies.
Last reply by RedCreeper, almost 11 years ago:
I have Given credit to the games that i have uploaded from the book-scenarios
Top Down Walls
By dominicarrojado, with 12 replies.
Last reply by danpost, almost 11 years ago:
Please refer to the 'Enemy Follow Player' discussion thread.
792
793
794
795
796
797
798
X