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
Problem with an image
By moobe, with 6 replies.
Last reply by moobe, over 12 years ago:
Yeah, just wanted to do that, but then I noticed that it looks more realistic right now! Anyway, thank you so much for your help!
Hi everybody
By AliDawari, with 2 replies.
Last reply by AliDawari, over 12 years ago:
OH Sorry Guys , Penalty game (shooting) ..
Get the World which is currently active
By Super_Hippo, with 9 replies.
Last reply by danpost, over 12 years ago:
The line 'this();' calls and executes your constructor that begins with 'public Level1()'. The 'getScoreCounter()' and 'getLivesCounter()' are methods you might need to write in your world class to get access to those objects (I did say objects; not classes). Since you have two Counter objects in your world, we must keep references to them, to be able to tell one apart from the other. You will have to do the following when using the first method:
New User
By LearningProgramming, with 2 replies.
Last reply by danpost, over 12 years ago:
You could look at the
Java tutorials (trails)
, also.
Some code
By moobe, with 2 replies.
Last reply by moobe, over 12 years ago:
Ok, fixed it now, thank you very much for your help!
Having "levels"
By bbwf, with 1 reply.
Replied to by danpost, over 12 years ago:
You can use an int field in the world class to track which level you are in or you can use different worlds for each level.
Hide 'Reset, Run, Speed' bar
By bonana, with 8 replies.
Last reply by bonana, over 12 years ago:
Thanks for your help.
Having a problem creating an object.. from an object.
By Minion1, with 3 replies.
Last reply by Minion1, over 12 years ago:
Ah, thank you.
Please help?
By Mspassion00, with 3 replies.
Last reply by danpost, over 12 years ago:
What you are saying is: if soldYesterday is greater than soldToday, then salesTrend is assigned negative one else salesTrend is assigned one. If you know how to assign a value to a variable then these would be your 'trueStatement' and 'falseStatement' replacements and 'condition' is replaced with your comparison expression. Hope that helps. If you still cannot get it to work, post the code you have now for more help.
Startup / Loading Screen?
By askgriff, with 1 reply.
Replied to by danpost, over 12 years ago:
Whether you use a startup world or not, the sound in the main world will have to be initialized in that world. If you initialize the GreenfootSound fields and play each one after setting volumes to zero (to actually load the files) in the world constructor, they will be ready when the scenario is started (remember to reset the volumes back for each sound).
Upload Problem
By BradH, with 4 replies.
Last reply by BradH, over 12 years ago:
ok, Thanks a lot!
Creating a scoreboard ex. 7.67
By wg33, with 3 replies.
Last reply by bjonesre, over 12 years ago:
I got this working. Initialized space at the top then added space = (Space) getWorld(); space.countScore(1); to the asteroid class before the object is removed.
UML diagram generator for Greenfoot projects.
By Timververs, with no replies.
As the title says. I'm looking for an generator that converts greenfoot projects to UML diagrams. Diagrams like : Class diagram, Activity diagram, Use case diagram, State diagram, Sequence Diagram. Any of the above diagrams should be able to be generated by a tool? -Tim Ververs
random number between x and y
By bonana, with 3 replies.
Last reply by bonana, over 12 years ago:
Okay, thanks for the correction.
Reading questions from file
By student101, with 14 replies.
Last reply by danpost, over 12 years ago:
Did you miss my abstract 'QnA' class posting of 2 days ago, also? If you look over the code, maybe you can get a better idea of how arrays work. A simple array is returned from the 'getChoices' method and is called from a statement something like the following: <Code Omitted>This will create a simple array, or list, if you will, of choices. 'choices' is the first choice, 'choices' is the second, and so on, ba
886
887
888
889
890
891
892
X