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
setBackground in World
By SPower, with 11 replies.
Last reply by SPower, over 12 years ago:
@davmac thanks for the info
Integer into String
By Barador, with 8 replies.
Last reply by Zamoht, over 12 years ago:
I tried as well and it works. (:
Fresh Programming
By MathManiac, with 15 replies.
Last reply by SPower, over 12 years ago:
Is it ok if I join fresh programming?
Game crashes on launch, but only when exported
By SurefireMooly, with 2 replies.
Last reply by SurefireMooly, over 12 years ago:
Awesome works perfectly now! Thanks a tonn!
Ich weiß nicht weiter
By Cocky, with 4 replies.
Last reply by Cocky, over 12 years ago:
tue ich ja :(
Programming Club
By hchen, with no replies.
I am thinking about getting my son into programming. I can teach him the language. I hope he can join some club or collaboration group so kids can work on a project together. My son is 12, and is very good at math. Any information is appreciated.
On 'platforms of meh by steved'
By danpost, with 17 replies.
Last reply by steved, over 12 years ago:
Okay, I changed all of the worlds. Thanks again for all of the help danpost. I'm uploading the scenario now.
Getting list of a classes in a program?
By kiarocks, with 1 reply.
Replied to by iau, over 12 years ago:
In general, it's not easy to get a list of the classes which could be used by a Java program, whether they're in named packages or (as in Greenfoot) in the un-named package. The approaches I've seen rely on being able to look for all the .class files in the project folder(s), or in the Jar file used for a stand-alone application. I don't imagine that the Java Security Manager would let you scan a Jar file from a remote URL, so this technique might not work at all running an Applet from a web server (e.g. the Gallery).
Switching Worlds In Greenfoot
By al_griff, with 4 replies.
Last reply by danpost, over 12 years ago:
The first code-set would be calling a method, if there was one, not a constructor (with 'newWorld()'). The second code-set is a correct way to instantiate a new world. You could also combine lines 5 and 6 with: <Code Omitted>However, if your game over worlds ('WinWorld' and 'LoseWorld') are to display the final score, you will either have to pass the score itself, or the object that holds the score, in a parameter so you can access it. If you are wanting to do this, and are unsure how, check out
How to save variables and their values in a .txt file
By Gevater_Tod4711, with 2 replies.
Last reply by Gevater_Tod4711, over 12 years ago:
thanks that will help
How do I print my score with this script?
By OrangeFlash81, with 4 replies.
Last reply by danpost, over 12 years ago:
The main problem (why your score keeps coming up zero) is because of the 'GameOver' world code, specificly lines 13 and 25. You are creating a NEW scoreboard (one that nothing has been added to) and displaying that score. An easy fix at this point is to insert a line at 25 (just before adding the scoreboard object to the world) <Code Omitted> The reason you are getting an error on 'public GameOver(int score);' is because you have a semi-colon ( ; ) at the end of that line which should NOT be there. Remove it. Line 14 in the Rocket actor code should be removed (yo
Name collisions
By dark_sky, with 1 reply.
Replied to by steved, over 12 years ago:
Just put the games the scenarios together and rename all conflicting classes to something like LevelEdit'classname'. By the way why did you make the level editor a different scenario?
Using a screen buffer
By SPower, with 6 replies.
Last reply by SPower, over 12 years ago:
@davmac thanks, I'll look at that. I thought maybe there is a hardware accelerated method, but apparently not.
Is it possible that if I were to use these concepts my professor would hit me for plagarism?
By Jhamby5, with no replies.
I am unsure about this website information since code pretty much has similar frameworks and she is being very tough first day of school... I feel that if I can work within the environment and use code snippets, I should in theory be able to customize the code to me. Any thoughts on this??? I just started Class 2 days ago! and this is different from my web skills.. She is using some type of web based auditor to check my code when I submit it through moodle..
How large can Scenarios be to upload them?
By Gevater_Tod4711, with 2 replies.
Last reply by Gevater_Tod4711, over 12 years ago:
@nccb Ok good to know that. In my case the problem are too many Images. The game this time is 85 MB. But the code also is more than 15 MB. I don't think I'll be able to upload it.
943
944
945
946
947
948
949
X