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
Write a method.
By avocasso, with 4 replies.
Last reply by avocasso, over 13 years ago:
Thanks, Moobe. I have another concern, please help me if you can, about ' CORRECT THIS ERROR FOR ME ' that is a new post. Thanks
Switching "Weapons"
By RedManRocket, with 4 replies.
Last reply by RedManRocket, over 13 years ago:
I will try the tutorials, Thank you.
Another programming work to solve
By avocasso, with no replies.
how do I Write a code that forces the Pig to greet the stationary Pig objects it encounters as it moves around.
Problem with an image
By moobe, with 6 replies.
Last reply by moobe, over 13 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 13 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 13 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 13 years ago:
You could look at the
Java tutorials (trails)
, also.
Some code
By moobe, with 2 replies.
Last reply by moobe, over 13 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 13 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 13 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 13 years ago:
Ah, thank you.
Please help?
By Mspassion00, with 3 replies.
Last reply by danpost, over 13 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 13 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 13 years ago:
ok, Thanks a lot!
Creating a scoreboard ex. 7.67
By wg33, with 3 replies.
Last reply by bjonesre, over 13 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.
889
890
891
892
893
894
895
X