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
Memory error in exported files
By Phazon, with 4 replies.
Last reply by Phazon, over 13 years ago:
thanks a lot it finally worked :) (tried it before, but, somehow it always returned null, so i droped the idea; was standing in the
"method described here"
. Still wondering why it did that^^ )
High Score Saving
By billybobjoe1223, with 3 replies.
Last reply by mik, over 13 years ago:
Both replies here have pointed out that you cannot write to a file (or connect to another website) when running in the Gallery. That is true. The reason is security: If any applet running on a web page was able to write to your file system, then just opening a web page could raise hell on your computer. The web page might contain an applet that erases all your files and replaces them with cats on skateboards. To prevent this, applets (and Greenfoot scenarios in the Gallery are applets) are run in a "sandbox" -- i.e. they are forbidden to do anything that could be dangerous. And that incl
Sounds
By jhadad, with 3 replies.
Last reply by PiRocks, over 13 years ago:
Make sure you have the newest form of Greenfoot. If your version is under 2.0, then GreenfootSound is unavailavble.
Help game bar
By jhadad, with 2 replies.
Last reply by webmessia, over 13 years ago:
This may help slightly :P
Additional Software
By PiRocks, with 6 replies.
Last reply by billybobjoe1223, over 13 years ago:
I've used
LMMS
for music before. It has versions for windows and mac even though it has Linux in its name.
Mouse Icon
By PiRocks, with 9 replies.
Last reply by PiRocks, over 13 years ago:
Thanks davmac for the code. I'm glad I didn't have to search through the source like I did for my last major problem (collision detecting outside of the world, this was before Greenfoot 2).
Shooting
By Lildarkone, with 3 replies.
Last reply by Lildarkone, over 13 years ago:
Nevermind, collision with world edge is working now. Thanks again for the arrow movement!
Mouse Wheel and Image
By PiRocks, with 3 replies.
Last reply by Builderboy2005, over 13 years ago:
Ah, fixed it. I needed to add it into the world panel by using: WorldHandler.getInstance().getWorldCanvas().addMouseWheelListener(myScrollingListener);
Sun Beams
By webmessia, with 3 replies.
Last reply by JL235, over 13 years ago:
webmessia wrote...
Method 2) Create an array of GreenfootImages for frames(15 at the moment). Then draw the sky on each one, aswell as the sun beams rotated slightly each time. Then draw the grass on each one. This is done once at construction, then the images are looped through when running. Pros: Fast. 30fps+ easily Cons: Lots of memory needed. over 100MB I think. I kept on getting Java Heap space errors after a few compiles. Seems to have less memory problems exported. Is there anyway to reduce the ammount of memory the images take up?
This is quite an advanced part of Java to u
Strange Glitch
By srk0008, with 1 reply.
Replied to by nccb, over 13 years ago:
Could you zip up your code and send it to support@greenfoot.org, so that we can take a look? And do the machines that you were trying to run the code on have different versions of Greenfoot?
error when uploading
By Johnny5, with 2 replies.
Last reply by davmac, over 13 years ago:
I have no trouble uploading. Has this been fixed in the meantime?
Greenfoot Linked list?
By Mattan.H, with 1 reply.
Replied to by JL235, over 13 years ago:
In Greenfoot you can use the Java API. In there are
LinkedList
and
ArrayList
classes you can use. Personally I'd recommend using the latter.
Removing Object at height of parabola?
By Wes1731, with 2 replies.
Last reply by PiRocks, over 13 years ago:
If your parabola is quadratic (ax^2 + bx + c), then the top of the parabola is in the exact middle of the two solutions. Since you're in highschool, I'm going to assume you know how to do this. If you are using the same parabola every time, you can pre-calculate this point, otherwise you should probably use the quadratic formula and calculate the point before the object is launched because the game might lag during the calculation.
Optional Start/Reset
By Builderboy2005, with 5 replies.
Last reply by Builderboy2005, over 13 years ago:
Ah gotcha, the reason I ask is merely because the website WeCreateStuff.com has taken an interest in my Nightmare Scenario, and I aim to release it on their website as well as Greenfoot when it is finished, and I was just looking for a way to remove those buttons, but it's not really a high priority right now :P
Right mouse button broke
By coirby3, with 1 reply.
Replied to by JL235, over 13 years ago:
Ultimately your just going to have to buy a new mouse. However until then one of the main things you won't be able to do is to create sub-classes of Actor and World. In the top menu bar you can create a new class from there and then alter it's class signature adding 'extends Actor' or 'extends World'.
1047
1048
1049
1050
1051
1052
X