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
Switching image problem
By ProForces, with 3 replies.
Last reply by ProForces, almost 13 years ago:
Okej, I will try. Thnx for your help!
Compare locations, doesn't work properly...
By Jonche, with 5 replies.
Last reply by davmac, almost 13 years ago:
Try some sample values and go through your code to see what it does. Suppose the monster is at 100,100 and that Joe is at 105,105. <Code Omitted> getX() - joeX should be -5 (which is less than 300). joeY - getY() should be 5, which is also less than 300. getX() - joeX will be -5, which is NOT > 0, so the condition is false. So it sets joeIsNear to false (line 5).
License for published scenarios?
By GreenJ, with 1 reply.
Replied to by davmac, almost 13 years ago:
There is not a default license, so you must obtain permission to use someone else's code or any other material that would be covered by copyright.
Greenfoot and kinnect
By anup, with no replies.
I want to develop a jigsaw game where I'll move objects(images) using kinect. I'll cut an image into 9 or 16 parts and will keep those images, let's say to the right size of my main window. I can check if image and my right hand overlaps. But, how can I drag that image in my main window, as while dragging it'll overlap with other images too. So, is there any way in kinect to select a particular image like a click event of mouse and drag it?
Cannot find symbol - variable color
By shern91, with 11 replies.
Last reply by shern91, almost 13 years ago:
i did it...addObject(r,500,300)..thank to everyone for helped i..
Call Pause() or Wait() within a Loop to visualize steps?
By GreenJ, with 2 replies.
Last reply by danpost, almost 13 years ago:
Of course, this can be done in the Turtle class itself; and be made to do specific things at specific times. Like in the following:
Recursion vs. Multithreading
By GreenJ, with no replies.
I just submitted my first Scenario. In order to explain recursion on a basic level, I started with a Turtle project by Paul Clark and Poul Henriksen that I found right here. TreeTurtle is a simple demonstration of how recursion works. Then, my idea was to use the object orientated approach of Greenfoot in order to replace recursive method calls by respawning turtles. Instead of using the clone( ) method, I went for the built-in World method addObject. I wonder if the resulting class MagicTurtles can faciliate the understanding of recursion, or if this process forking concept is too different from recursion (way back is not needed, e.g.) and thus rather confusing students?
done it but how can i do this...
By payner2013, with no replies.
ok so now i have this... <Code Omitted>is there a way that i can specify the world and say if that world is empty then open level 3?
how to make an actor shoot stuff and kill others
By Velociraptor06, with 12 replies.
Last reply by riorex18, almost 13 years ago:
That was helpful. Thanks.
getActor method
By PrezHawkeye, with 2 replies.
Last reply by danpost, almost 13 years ago:
I think I should mention that 'getActor' is a method supplied by greenfoot only in the MouseInfo class. That is, other than getting the actor that a mouse action is performed on, the 'getActor' method is not used without creating the method yourself. You are probably referring to the World class method 'getObjects' which returns a List object containing the objects of the class given that are in the world (or all objects in the world if 'null' is passed as the argument). A List class method ('size()', 'get(int)', 'isEmpty()' to name a few) would then be applied to the List object to obtain
greenfoot not starting up
By jhw1994, with 1 reply.
Replied to by davmac, almost 13 years ago:
It looks like you have firewall or security software which is blocking Greenfoot's operation. Please see
this page
.
Return to the current world
By winsticknova, with 6 replies.
Last reply by winsticknova, almost 13 years ago:
thank you so much! it works
Counter Help
By LugNut29, with no replies.
Hi, I'm having issues with my counter. I need to have my dog fall asleep after the energy hits 0, but mine just continues to count down into the neg numbers. So it will go from 100 down to 0 then continue counting -1, -2, etc. Why is it not putting my dog to sleep when the energy hits 0? Nay help would be great. Here's my code: <Code Omitted>
When can I expect to update Greenfoot?
By won0c, with 2 replies.
Last reply by GreenHouse, almost 13 years ago:
Greenfoot, the way it is, does not need
gorgeous new features
because it was created to help/show/teach people
learning
java; and that's what Greenfoot is perfectly doing at the moment. If you need new features; well... it's Java, just google around ;) Furthermore, I try to create my own Greenfoot update; but that's
unofficial Greenfoot stuff...
:)
Help!! my score.....
By payner2013, with 13 replies.
Last reply by payner2013, almost 13 years ago:
Thank you soo much!!!!!!!! :D you have no idea how happy i am. im sorry its taken you this long i have been trying to look it up but nothing was working for me so sorry... but thank you ever so much!!!!!!!! :D and thank you shrucis1. you bothe helped alot :D
771
772
773
774
775
776
777
X