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
why does this not work?
By theuberjew, with 12 replies.
Last reply by theuberjew, over 12 years ago:
Thank you for all your help my program runs fine now
Track skeleton on Greenfoot
By swapthomas, with no replies.
Hi, I installed the Kinect successfully. It has tracked my skeleton. I imported some of the Greenfoot examples that was on the Kinect page. How do I get my skeleton to appear on the Greenfoot console? Regards,
Custom Icon after Exporting .Jar File
By Avro, with 3 replies.
Last reply by Gevater_Tod4711, over 12 years ago:
I think it would be easyer to compile the .jar file into an .exe file. There it's simple to add an icon. I like the program JMadX. It's very simple but it works.
I have a problem with scoreboard
By DaBist, with 4 replies.
Last reply by DaBist, over 12 years ago:
danpost wrote...
If you want only one counter (Points) in the vsa class that all its subclasses share, you can use the 'static' keyword in the field declaration in the vsa class: <Code Omitted>My only concern is: why do you have a class and two subclasses for something that can be done in one single class; as only one has an image.
it works now. Thanks!
Help with Actor movement speed
By Sergio, with 7 replies.
Last reply by Sergio, over 12 years ago:
Hey mate sorry totally forgot to react yesterday, your previous option worked thank you so much man! Again! You're being a really big help :)
Key press question
By BradH, with 8 replies.
Last reply by danpost, over 12 years ago:
<Code Omitted>You have to supply the Class names to replace 'ObjectOne' and 'ObjectTwo' plus the rest.
cannot find symbol
By super_noob, with 6 replies.
Last reply by danpost, over 12 years ago:
Insert at line 3 of the code provided above the following line: <Code Omitted>By declaring a field within a class but outside any method like this, you are giving each instance created by that class a seperate field with that name to use. Of course, if you only create one instance of the class, there will only be one field with that name; but, it belongs to that object created (not to the class itself). EDIT: your welcome.
Help with shooting
By mncomic, with 16 replies.
Last reply by danpost, over 12 years ago:
That would have to be in the gun class as that is where you are determining when to shoot.
Kinect reusable on Xbos after installing for Greenfoot
By Antost, with 1 reply.
Replied to by davemib123, over 12 years ago:
for the x360 it is plug and play :)
Mouse Clicked from World
By Barador, with 3 replies.
Last reply by danpost, over 12 years ago:
The keyworld 'this' refers to an Object class object , so that would be one way to use it (if you want it to check for clicks on the current object whose method is being executed on).
explanination
By lonely.girl, with 5 replies.
Last reply by danpost, over 12 years ago:
The 'delay--;' is shorthand for 'delay = delay - 1;' or 'delay -= 1;' (they all do the same thing. Same with 'delay = delay + 1;', 'delay += 1;' and 'delay++;'.
How do I detect Objects that are NEAR another?
By Entity1037, with 7 replies.
Last reply by Entity1037, over 12 years ago:
It works! Thank you so much! I shall post my beta version of the game I'm making this for soon.
how do i make a wall with scrolling background
By KierTulp, with 12 replies.
Last reply by danpost, over 12 years ago:
By the way, my system would not let me delete some of the files in your scenario (telling me that they were still in use; even when nothing was open). I had to re-format to get rid of them. Fortunately, I am using USB drives. I copied all the files to another flash to re-format, then copied them back. Then, I was able to delete them.
PacManGamePad scenario with Logitec f310
By bkellermann, with no replies.
Hello everybody Today I tried to run the pacman example scenario which can be found here:
GamePad
But it didn't work. I got the following two errors: move(int) in Ghost cannot override move(int) in greenfoot.Actor attempting to assign weaker access privileges; was public -->so I mad it public and the same with the PacMan class: move(int) in PacMancannot override move(int) in greenfoot.Actor attempting to assign weaker access privileges; was public After that I was able to compile the code, but I got the next error by executing the programm: java.lang.UnsatisfiedLinkError: no jinput-dx8-64 in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1860) at java.lang.Runtime.loadLibrary0(Runtime.java:845) at java.lang.System.loadLibrary(System.java:1084) at net.java.games.input.DirectInputEnvironmentPlugin$1.run(DirectInputEnvironmentPlugin.java:75) at java.security.AccessController.doPrivileged(Native Method) at net.java.games.input.DirectInputEnvironmentPlugin.loadLibrary(DirectInputEnvironmentPlugin.java:67) at net.java.games.input.DirectInputEnvironmentPlugin.<clinit>(DirectInputEnvironmentPlugin.java:109) at net.java.games.input.DirectAndRawInputEnvironmentPlugin.<init>(DirectAndRawInputEnvironmentPlugin.java:45) 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 java.lang.Class.newInstance0(Class.java:372) at java.lang.Class.newInstance(Class.java:325) at net.java.games.input.DefaultControllerEnvironment.getControllers(DefaultControllerEnvironment.java:157) at gamepadlib.GamePadLoader.initialize(GamePadLoader.java:20) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at GamePad.<clinit>(GamePad.java:132) at Level.generateLevel(Level.java:109) at Level.<init>(Level.java:78) 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:578) at greenfoot.platforms.ide.WorldHandlerDelegateIDE$3.run(WorldHandlerDelegateIDE.java:408) at greenfoot.core.Simulation.runQueuedTasks(Simulation.java:465) at greenfoot.core.Simulation.maybePause(Simulation.java:279) at greenfoot.core.Simulation.runContent(Simulation.java:210) at greenfoot.core.Simulation.run(Simulation.java:203) java.lang.UnsatisfiedLinkError: no jinput-raw-64 in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1860) at java.lang.Runtime.loadLibrary0(Runtime.java:845) at java.lang.System.loadLibrary(System.java:1084) at net.java.games.input.RawInputEnvironmentPlugin$1.run(RawInputEnvironmentPlugin.java:75) at java.security.AccessController.doPrivileged(Native Method) at net.java.games.input.RawInputEnvironmentPlugin.loadLibrary(RawInputEnvironmentPlugin.java:67) at net.java.games.input.RawInputEnvironmentPlugin.<clinit>(RawInputEnvironmentPlugin.java:109) at net.java.games.input.DirectAndRawInputEnvironmentPlugin.<init>(DirectAndRawInputEnvironmentPlugin.java:46) 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 java.lang.Class.newInstance0(Class.java:372) at java.lang.Class.newInstance(Class.java:325) at net.java.games.input.DefaultControllerEnvironment.getControllers(DefaultControllerEnvironment.java:157) at gamepadlib.GamePadLoader.initialize(GamePadLoader.java:20) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at GamePad.<clinit>(GamePad.java:132) at Level.generateLevel(Level.java:109) at Level.<init>(Level.java:78) 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:578) at greenfoot.platforms.ide.WorldHandlerDelegateIDE$3.run(WorldHandlerDelegateIDE.java:408) at greenfoot.core.Simulation.runQueuedTasks(Simulation.java:465) at greenfoot.core.Simulation.maybePause(Simulation.java:279) at greenfoot.core.Simulation.runContent(Simulation.java:210) at greenfoot.core.Simulation.run(Simulation.java:203) java.lang.IllegalArgumentException: No gamepad found, are you sure it's plugged in? at GamePad.getGamePad(GamePad.java:305) at GamePad.getGamePad(GamePad.java:288) at Level.generateLevel(Level.java:109) at Level.<init>(Level.java:78) 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:578) at greenfoot.platforms.ide.WorldHandlerDelegateIDE$3.run(WorldHandlerDelegateIDE.java:408) at greenfoot.core.Simulation.runQueuedTasks(Simulation.java:465) at greenfoot.core.Simulation.maybePause(Simulation.java:279) at greenfoot.core.Simulation.runContent(Simulation.java:210) at greenfoot.core.Simulation.run(Simulation.java:203) java.lang.IllegalArgumentException: No gamepad found, are you sure it's plugged in? at GamePad.getGamePad(GamePad.java:305) at GamePad.getGamePad(GamePad.java:288) at Level.generateLevel(Level.java:109) at Level.<init>(Level.java:78) 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:578) at greenfoot.platforms.ide.WorldHandlerDelegateIDE$3.run(WorldHandlerDelegateIDE.java:408) at greenfoot.core.Simulation.runQueuedTasks(Simulation.java:465) at greenfoot.core.Simulation.maybePause(Simulation.java:279) at greenfoot.core.Simulation.runContent(Simulation.java:210) at greenfoot.core.Simulation.run(Simulation.java:203) I'm using a Logitec f310 GamePad which can swich between DirectInput and XInput. I tried both modes but non of them worked. Does anybody have a solution?
Getting a position of different Objects
By Diphthong, with 4 replies.
Last reply by danpost, over 12 years ago:
Is it a static or non-static variable (non-static will not have the 'static' keyword in its declaration)? If non-static, how many objects of class2 are created and in the world? If only one, then in class1 (and I will give the variable an 'int' type, since you did not say): <Code Omitted>where you have the following method in class2: <Code Omitted>
909
910
911
912
913
914
915
X