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
Hide 'Reset, Run, Speed' bar
By bonana, with 8 replies.
Last reply by bonana, almost 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, almost 13 years ago:
Ah, thank you.
Please help?
By Mspassion00, with 3 replies.
Last reply by danpost, almost 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, almost 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, almost 13 years ago:
ok, Thanks a lot!
Creating a scoreboard ex. 7.67
By wg33, with 3 replies.
Last reply by bjonesre, almost 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.
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, almost 13 years ago:
Okay, thanks for the correction.
Reading questions from file
By student101, with 14 replies.
Last reply by danpost, almost 13 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
sound problem
By bonana, with 2 replies.
Last reply by danpost, almost 13 years ago:
You may have some information tags in your sound file. Try re-saving the file making sure that they are not included.
Simple greenfoot game tutorial
By danbyization, with 2 replies.
Last reply by danbyization, almost 13 years ago:
I've already seen that one i want one which is a bit more advanced than that one but still teaches it to you as if you are a complete beginner but teaches to create a complete game from scratch
Trying to let a movie play in Greenfoot
By Gio, with 3 replies.
Last reply by danpost, almost 13 years ago:
You might want to have one of the Greenfoot team members look at it. Or, you could upload it on the site, publishing the source code, so we could see what is going on.
must be caught or declared to be thrown
By seelensauger, with 15 replies.
Last reply by danpost, almost 13 years ago:
I created a 'Pause' world that when instantiated will create a background image of the current visual state of the calling world. Even though the initial world is not being viewed, it appears as though it is. Also, when setting a new active world, the old world is paused; so, the background of the new world would continue to be the actual view of the initial world until that world is returned to. I added an actor 'Panel' class to the scenario, and had one Panel object added to the 'Pause' world which displays the world 'GAME PAUSED' and 'CLICK TO RESTART'. When clicked on it displays a cou
UserInfo keeps failing.
By Ethan243, with 1 reply.
Replied to by danpost, almost 13 years ago:
That is not good. I hope that you are the only one experience that problem.
somehow my codes don't work?
By hades530, with 6 replies.
Last reply by danpost, almost 13 years ago:
We know that the code supplied is alright (except for the missing semi-colon at the end of the 'turn' statement). You will have to supply more information and code to solve your problem. Code to supply: the 'atWorldEdge' method; specifying what class it is in the declaration statement of the class which the calling statement (supplied above) is located the entire method that the code supplied above is in the trace from the act method to the method that the supplied code is in (i.e. act>moveAndTurn>move; method-to-method)
889
890
891
892
893
894
895
X