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
Maximum project size?
By erdelf, with 6 replies.
Last reply by erdelf, about 13 years ago:
I will work on it. :)
making the balls move properly
By wahaj, with 2 replies.
Last reply by wahaj, about 13 years ago:
ahh ok i get what your saying and i tried it out. the balls move fine. i played the game and it ended being too easy. so i just set all the balls to move randomly =)
terminal window
By jpkenned, with 4 replies.
Last reply by jpkenned, about 13 years ago:
there was a bug in the program, my teacher fixed it. thanks tho.
for loop
By yoshush, with 2 replies.
Last reply by IsVarious, about 13 years ago:
Your question is a bit confusing, is it that you're wanting some code which checks to see if the snake is hitting a certain object, or are you asking how to create objects/images which you can use as a wall to block the snake?
Programming
By caze2012, with 1 reply.
Replied to by IsVarious, about 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, about 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, about 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, about 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, about 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, about 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, about 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, about 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, about 13 years ago:
O thanks! That solves it.
a few questions regarding my driving track
By wahaj, with 9 replies.
Last reply by davmac, about 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".
985
986
987
988
989
990
991
X