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
Making a subclass appear from an action within another subclass
By james440763, with 3 replies.
Last reply by danpost, about 13 years ago:
Passing the main character will allow a constant check on its coordinates in the world. Why do you need the coordinates of the main character in the attack class? It seems you could just control the fireball from the class of the main character. Add an instance field for a reference to a fireball object. When the key is detected down and the reference is 'null', set the reference to a new fireball object and add it into the world. When the key is detected NOT down and the reference is NOT 'null', remove the referenced fireball from the world and nullify the reference. The main characte
Remove Object after ~4sec if it is not been clicked on
By Syntac, with 3 replies.
Last reply by danpost, about 13 years ago:
I do not know if what I suggest has anything to do with it or not; but, maybe you are checking for mouse clicks elsewhere in your scenario and it is catching them there instead of here.
Compliling error
By Kartoffelbrot, with 2 replies.
Last reply by Kartoffelbrot, about 13 years ago:
Oh, that's why it works in BlueJ and not in Greenfoot. It works now, thank you!
Getting Coordinates from other Class
By THELokusta, with 3 replies.
Last reply by Gevater_Tod4711, about 13 years ago:
You don't realy need a counter in your game. This is just an example in the tutorial. In your case you would need a shield instead of the counter and the clase where you create and save the shield in would be your robot. So your robot always knows where the shield is at the moment. (Or the other way arround when your shield has to know where your robot is)
Kinect
By BijProstege, with 5 replies.
Last reply by noviceG, about 13 years ago:
I am using Mac Mountain Lion for kinect and the last inttruction ie install Greenfoot KinectServer gives the following error. " checking boost/thread.hpp presence... yes checking for boost/thread.hpp... yes checking for the Boost thread library... no configure: error: cannot find the flags to link with Boost thread " Please guide to fix the problem soon. I am doing a project on greenfoot kinect. Thanks and best regards,
Problem Installing Kinect on MAC OS X(Mountain Lion)
By noviceG, with no replies.
For the final step of
installing Greenfoot KinectServer
I am getting the error as " checking for boost/thread.hpp... yes checking for the Boost thread library... no configure: error: cannot find the flags to link with Boost thread " For your reference, Listed below are certain commands I had modified ;not listed in the website instructions, to remove the errors. 1) sudo /opt/local/bin/port install libusb-devel +universal i replaced the libusb-devel by libusb and this was fine. 2) I have installed all the Mac ports for Mountain lion from Apple website. http://www.macports.org/install.php I tried to refer to the previous discussion but failed to understand where to make the changes. Please help. Thank you.
Blowing up a Bomb
By THELokusta, with 13 replies.
Last reply by THELokusta, about 13 years ago:
Thanks guy! Works now!
A Bullet That Moves To Center Of Screen
By cruelrabbit, with 5 replies.
Last reply by cruelrabbit, about 13 years ago:
Wow, thanks guys! I will try this out later today and let you know how it goes. Thanks again!
How to handle sounds in java?
By Upupzealot, with 1 reply.
Replied to by Gevater_Tod4711, about 13 years ago:
There is a java turorial by oracle for sounds in java. You can find it
here
.
Project to exe
By Syntac, with 3 replies.
Last reply by Upupzealot, about 13 years ago:
@Gevater_Tod4711 dose the exe still need JRE to run it? I mean can it run on PCs which dose not have JDK/JRE installed. ============================== I read the website you'v given. It still needs JRE. Any way it's very nice of you to share the tool here :-)
how do i do this?
By javanoob, with 4 replies.
Last reply by javanoob, about 13 years ago:
thank you~~ XD
i don't know what is wrong with my stage changing.
By javanoob, with 2 replies.
Last reply by javanoob, about 13 years ago:
thx!! it worked!
MOVING BACKGROUND
By Prish950, with 2 replies.
Last reply by Prish950, about 13 years ago:
THANK YOU SO MUCH
Improving the Crab assignment - Please HELP!!!!!
By snobiz45, with 8 replies.
Last reply by Gevater_Tod4711, about 13 years ago:
You try to create new instances of the type Lobster (addObject(new Lobster(), ...); ) But you can only create this objects when the class called Lobster exists. In the class that represents your lobster you need to add the name of the class in the deklaration (public class Lobster extends Actor) If your class is called different or you haven't even got a class Lobster you need to change the name or create a new class. (To create a class you rightclick on the actor class, choose new subclass and enter the name Lobster)
Help with this Code!
By tartags11, with 5 replies.
Last reply by SPower, about 13 years ago:
To summarise all the stuff we were talking about, this should work: <Code Omitted>
790
791
792
793
794
795
796
X