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
Axis Aligned Bounding Box
By Kartoffelbrot, with 21 replies.
Last reply by danpost, over 11 years ago:
Kartoffelbrot wrote...
My browser always blocks the scenario and I don't know how tu undo that :(.
You could start an 'Other' discussion on how to fix it. Supply your set-up (system, browser, java version) and what message you are getting when trying to view a scenario.
Problems
By SUPERc00lBudder, with 1 reply.
Replied to by SUPERc00lBudder, over 11 years ago:
never mind, i looked it over and figured it out
Old languege
By SUPERc00lBudder, with 9 replies.
Last reply by lordhershey, over 11 years ago:
No problem :D
getting focus to player object
By davemib123, with 2 replies.
Last reply by davemib123, over 11 years ago:
great. that seems to have done the trick.
What is causing this code to stop?
By MusicPenguin, with 6 replies.
Last reply by MusicPenguin, over 11 years ago:
Ahhhhhh yes! Thank you very much!
Help with bug?
By miku622, with 7 replies.
Last reply by miku622, over 11 years ago:
ok thanks i will after i finish the last level
Follow Cursor
By buildoman, with 11 replies.
Last reply by lordhershey, over 11 years ago:
Not really a furious debate, we just had 2 different approaches to this same problem, the first code snippit I put out there you had pointed out that the actor would drift away to the edge of the screen, which it did. so I put that distance check in there to adjust the angle more in or out depending on the distance from the target. I had not posted the code, not sure why, I can easily be distracted.
Help With Spawning Actors Randomy
By TimeScorpion7, with 7 replies.
Last reply by MusicPenguin, over 11 years ago:
Thanks for the answer :)
Problem
By BradH, with 38 replies.
Last reply by Y0ger, over 11 years ago:
Yes it helped :D
GamePad Errors Please Help!
By eaglejack, with no replies.
Hello, I have downloaded the GamePad Tester and Template scenarios, but on compiling both I am getting the following error log - anyone understand what is going on here? java.lang.IllegalArgumentException: Given klassFile must be a file at GamePad.loadLib(GamePad.java:55) at GamePad.<clinit>(GamePad.java:128) at ControllerWorld.<init>(ControllerWorld.java:24) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:525) at greenfoot.core.Simulation.newInstance(Simulation.java:581) at greenfoot.platforms.ide.WorldHandlerDelegateIDE$3.run(WorldHandlerDelegateIDE.java:409) at greenfoot.core.Simulation.runQueuedTasks(Simulation.java:468) at greenfoot.core.Simulation.maybePause(Simulation.java:281) at greenfoot.core.Simulation.runContent(Simulation.java:212) at greenfoot.core.Simulation.run(Simulation.java:205) java.lang.NoClassDefFoundError: net/java/games/input/ControllerEnvironment at gamepadlib.GamePadLoader.getGamePads(GamePadLoader.java:110) at GamePad.refreshGamePads(GamePad.java:363) at GamePad.getGamePads(GamePad.java:334) at GamePad.getNumGamePads(GamePad.java:320) at ControllerWorld.<init>(ControllerWorld.java:24) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:525) at greenfoot.core.Simulation.newInstance(Simulation.java:581) at greenfoot.platforms.ide.WorldHandlerDelegateIDE$3.run(WorldHandlerDelegateIDE.java:409) at greenfoot.core.Simulation.runQueuedTasks(Simulation.java:468) at greenfoot.core.Simulation.maybePause(Simulation.java:281) at greenfoot.core.Simulation.runContent(Simulation.java:212) at greenfoot.core.Simulation.run(Simulation.java:205) Caused by: java.lang.ClassNotFoundException: net.java.games.input.ControllerEnvironment at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:423) at java.lang.ClassLoader.loadClass(ClassLoader.java:356) ... 15 more
Gradually decrease and increasing speed
By alexpg95, with 2 replies.
Last reply by alexpg95, over 11 years ago:
It worked. Thank you so much!!
Ai shooting in my game
By Y0ger, with 7 replies.
Last reply by Y0ger, over 11 years ago:
Thanks a lot! It works.
Winning before the timer ends?
By miku622, with 1 reply.
Replied to by danpost, over 11 years ago:
Nice timer. But what does it or its code have to do with the player reaching the door. It will obviously still be running at that time (or the You Lose page would have shown beforehand); but, the timer is of no consequence ONCE the player reaches the door. Have the door or the player check for the other intersecting it and show the You Win page if so. My only concern, beyond that, is will what actions you take at that time prevent the timer from still running out and show the You Lose screen afterwards. If you use 'Greenfoot.stop()', there should be no problem. Otherwise, you may want to
java.lang.NullPointerException: The given world cannot be null.?!?!?!?!
By miku622, with 3 replies.
Last reply by miku622, over 11 years ago:
Ok i get it thanks!
Can't work out how to use <code>getText()</code>
By basil60, with 7 replies.
Last reply by danpost, over 11 years ago:
Maybe you should consult
this page
of the java tutorials.
663
664
665
666
667
668
669
X