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 this code easier?
By Hoppa, with 13 replies.
Last reply by Hoppa, over 9 years ago:
Thanks Danpost, Your a genius ;-). Such a simple code... <Code Omitted>
For loop to addObjects
By puddle148, with 4 replies.
Last reply by puddle148, over 9 years ago:
Thanks danpost everything is working now!
Continuity problem
By Hondrok, with 2 replies.
Last reply by Hondrok, over 9 years ago:
danpost wrote...
Replace line 94 with the following: <Code Omitted>
thank youu
Breakout paddle collision problem
By thebutterycanadian, with 1 reply.
Replied to by danpost, over 9 years ago:
Try this. Add the following to the ball class (or if you already have the first line in the code, add the code in the block to the end of the block in your code): <Code Omitted>This will show the extent of the actual image unless your background is dark, in which case you can change 'black' to 'white'. Report back what y
Maze runner
By Ponce09, with 1 reply.
Replied to by Super_Hippo, over 9 years ago:
<Code Omitted>Replace MyWorld with the name of your starting world class.
game
By jacquelinereilly, with 15 replies.
Last reply by jacquelinereilly, over 9 years ago:
it worked. thank you
Shooting
By Hondrok, with 10 replies.
Last reply by Hondrok, over 9 years ago:
Nosson1459 wrote...
spaceDown is not supposed to be a method (though you could have a method for checking the key), it's a boolean variable which you define in the beginning of your class (if you define it in the method you're calling then it won't do anything because you keep on resetting it).
danpost wrote...
Add a boolean field to track the state of the 'space' key. Use it in conjuction with 'isKeyDown':
Changing the font size of showtext()
By BigGrosse, with 2 replies.
Last reply by BigGrosse, over 9 years ago:
Okay thank you @danpost i will try it out!
Other
By Nosson1459, with 8 replies.
Last reply by Nosson1459, over 9 years ago:
davmac wrote...
I personally think it is much better to...
We had different opinions, but when you told me to start a new topic, I did so now everything's fine.
How to stop array from going out of bounds.
By nat12, with 6 replies.
Last reply by nat12, over 9 years ago:
Oh... I always make it sound more complicated than it actually is. Thanks once again.
Getting objects to move
By cooknj, with 2 replies.
Last reply by cooknj, over 9 years ago:
It's okay. Problem solved.
Shooting Actor heeelp
By Hondrok, with 8 replies.
Last reply by Hondrok, over 9 years ago:
Super_Hippo wrote...
Try this: <Code Omitted>
yeah it works thank youu
2 scorboards
By yeags, with 1 reply.
Replied to by danpost, over 9 years ago:
yeags wrote...
how do i have 2 separate actors have different scoreboards
Set up a scoreboard for one of your actors. Then, expand it for the other one. If you get stuck, post what code you currently have (for both) and explain what is creating trouble for you.
Can you?
By Solomon, with 1 reply.
Replied to by danpost, over 9 years ago:
Solomon wrote...
I want to try to make a software that will be some kind of a test, for example there will be an image and you have to choose from a b c if it s correct you get 2 points if it s wrong you get -1 , is it possible with greenfoot?
Of course ... it is possible. It should not be that difficult, either. I would not say that would be a beginner project; but, maybe a novice one (for someone who knows the basic fundamentals of java programming in greenfoot).
Understanding code i found..
By Jochends, with 3 replies.
Last reply by danpost, over 9 years ago:
To declare a variable (or field), you need two things -- the name of the field and the type of the field. The type goes first, then the name you give it. Everything except the first line in the code above can be written like this: <Code Omitted>
This page
405
406
407
408
409
410
411
X