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
using text files in a game
By stevenGrohe, with 17 replies.
Last reply by stevenGrohe, about 13 years ago:
okay thanks
Actor not in world?
By Sofalovesmusic, with 2 replies.
Last reply by Sofalovesmusic, about 13 years ago:
thank you
slow
By tylers, with 2 replies.
Last reply by tylers, about 13 years ago:
sorted it now but thanks
how do you list objects in a certain radius
By tylers, with 2 replies.
Last reply by tylers, about 13 years ago:
thanks
UPLOAD
By abrabant, with 8 replies.
Last reply by tylers, about 13 years ago:
ok thanks. its 365KB well under :)
make my cat sleep
By Tomc84, with 5 replies.
Last reply by danpost, about 13 years ago:
The 'else' is not neccessary, as any code following the snippet I provided will execute if 'not sleeping'.
how can i change sprites in game on collision
By craigv, with 17 replies.
Last reply by craigv, about 13 years ago:
yaaaaaaay! finally worked properly :D thanks for your help guys Craig
Keypress issue
By murphys, with 3 replies.
Last reply by Morran, about 13 years ago:
@nccb that makes lots of sense.
safe spot
By Tomc84, with 1 reply.
Replied to by Morran, about 13 years ago:
It's possible, yes. I don't really know the context, so I can't say just how to do it, though. You could probably put in some code in the "eaters". When the "eaters" eat, they check to make sure that they are not in a safe zone. You could have the safe zone be its own type of Actor. Choose an image to bound the safe zone. If you do, than the "eaters" could just check <Code Omitted>Since the image is always square shaped, having a round safe zone would take some tinkering.
Download own code
By Aho, with 2 replies.
Last reply by Aho, about 13 years ago:
Ok.. thanks!
Help with nested if statement
By lex404, with 9 replies.
Last reply by lex404, about 13 years ago:
thanks! that definitely helped!! im going to go through the code and fix it up with better naming conventions.
Making something stay on the top layer?
By Gazzzah, with 1 reply.
Replied to by nccb, about 13 years ago:
If they are different classes, you can use the setPaintOrder method of the world: see the docs locally or at http://www.greenfoot.org/files/javadoc/greenfoot/World.html. If they are the same class, there's no mechanism for changing the paint order.
Kinect: The camera doesn't change its angle
By hildebrecht, with 1 reply.
Replied to by nccb, about 13 years ago:
Unfortunately, OpenNI, the middleware we are using, doesn't support control of the camera. So I'm afraid moving the camera is the best solution. I usually find that since you have to be a little way back from the camera anyway, putting it on a high table, or on top of the computer case on the table, usually works.
how many frames are in a second
By tylers, with 8 replies.
Last reply by davmac, about 13 years ago:
When you say the main thread sleeps, this is wasted time if the rest of the engine can't do prep work
Not sure what you mean by the 'engine', but if you're talking about the scenario itself, it can do any prep work it wants during the act cycle - either at the end or at the beginning. The thread sleeps only if all the actors have finished acting.
I don't suppose we could have a secondary thread that can be used for worker threads? Probably not required, but would be useful.
Greenfoot is meant for beginners, and multi-threading is an advanced topic. There
I know nothing of logarithms, quick question.
By darkmist255, with 7 replies.
Last reply by darkmist255, about 13 years ago:
Hmm... Might just do some trial and error then, that's always been a second option.
1006
1007
1008
1009
1010
1011
1012
X