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
Programming
By caze2012, with 1 reply.
Replied to by IsVarious, over 13 years ago:
What error are you having? is it that it's not letting you see it?, is it not letting you access it? If you do a search for it's name, does it come up? What exactly are your errors mate?
Greenfoot 2.1.2 and Move(int)
By danpost, with 1 reply.
Replied to by nccb, over 13 years ago:
Yep, it's a bug. It's fixed in 2.2.0.
Hey just looking for some help coding for a senior project due soon....
By OGava, with 1 reply.
Replied to by IsVarious, over 13 years ago:
I'm a bit confused about your questions. Is it that you're trying to make it so when the user clicks on the object, it is then pushed in a new direction? If this is the question, I would start with an if statement that checks to see if that object is clicked on, and then have a method that does what it is you're wanting done. For example, if you're wanting to push the ball in a new direction. You would write like this... <Code Omitted> Then you would write the method that does the action you're wanting
Kinect driver question
By MrsComputerTeacher, with no replies.
Hello, All! I am trying to use the XBOX 360 Kinect with Windows XP. I have followed the directions on the website, but my computer is telling me that the driver is not found. It does find the XBOX NUI Motor. Can anyone please help me? Thanks in advance!
Save files
By Gazzzah, with 3 replies.
Last reply by nccb, over 13 years ago:
When running in the IDE, it stores the data locally in a file (and handles all the file-writing and file-reading for you). When you export your scenario to the greenfoot.org website, the data is stored (per-user) on our server, but you don't have to modify your code at all -- you use the same code locally and exported, and Greenfoot does the right thing in each circumstance.
What does the delay() method do?
By RedPhoneBooth, with 3 replies.
Last reply by danpost, over 13 years ago:
In this case, you need to add an object boolean variable, let us call it 'swooshing' in the actor's class: <Code Omitted>Then, in the act() method you will need a few checks 1) if swooshing and either the spacebar is down or the swoosh object is still there: do not do anything 2) if swooshing and the spacebar is not down and the swoosh object is gone: reset swoosh 3) if not swooshing and spacebar is down: begin swooshing
How to use an 2d array?
By IsVarious, with 10 replies.
Last reply by IsVarious, over 13 years ago:
2patrickMurphy wrote...
@RedPhoneBooth Im doing a game too but mine isnt as fun as yours. Im making capture the flag with worms -.-
Thanks for the advise everyone, and I'll take this and see what sticks. If I have another question I'll be sure to ask. Also, I'd be interested in seeing your progress sometime Pat.
Take object' coordinates then apply it to another object.
By tkt, with 4 replies.
Last reply by tkt, over 13 years ago:
danpost wrote...
You must do more than create an object to get its location. Creating an object does not automatically put that object in the world. You need to find a method to add that object into the world before you can get its location in the world. Let me ask you this (maybe you might get some ideas on how to program this): when the ball and the player 'see' each other, which should control which? I mean, in football, does the football control the player or does the player control the football? Think about what this might imply.
Thanks for the answers.i know player should
Hello all I will stop the game in like 60 seconds but How can I do that
By martijn13039, with 18 replies.
Last reply by martijn13039, over 13 years ago:
Oow sorry TNS is thx (pc change it automatic)
Change auto created world
By SPower, with 2 replies.
Last reply by SPower, over 13 years ago:
O thanks! That solves it.
a few questions regarding my driving track
By wahaj, with 9 replies.
Last reply by davmac, over 13 years ago:
You should provide parameters when you are creating a new instance, as in "new Brick()". When you are referring to the class itself, you do not provide parameters, and add ".class" to the end, as in "Brick.class".
Where are the support classes?
By mark.hayes, with 2 replies.
Last reply by mark.hayes, over 13 years ago:
thanks Michael.
Music playing
By Gazzzah, with 8 replies.
Last reply by Gazzzah, over 13 years ago:
I've written in a music player, it's working fine. A lot better than expected
Im trying to get a certain period of time dedicated to a certain action.
By 2patrickMurphy, with 4 replies.
Last reply by 2patrickMurphy, over 13 years ago:
thanks i really didnt think about chaning the while to an if with +5000 seconds. its pretty much the same thing and also i completely rewrote everything making it as efficient as i could think gutting out mostly how everything is being executed. Ill put your idea into it if i still get an error ill repost it with the new code.
Creating a Library
By bpiltin@unitedisd.org, with 10 replies.
Last reply by bpiltin@unitedisd.org, over 13 years ago:
Problem Fixed! I found that the classes for Greenfoot are located in C:\Program Files\Greenfoot\lib\greenfoot\standalone. I added that to my build path and I was able to compile. Thanks for all of your help!
988
989
990
991
992
993
994
X