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
Background Music
By SuperNinja, with 2 replies.
Last reply by SuperNinja, over 7 years ago:
Thank you I appreciate that, didn't know about the sound folder!
Help with vector movement
By HelpMe123, with 3 replies.
Last reply by danpost, over 7 years ago:
The class java.util.Vector is not a (double rotation, double magnitude) type vector class. If you look at the documentation of the class, it extends the java.util.AbstractList class and creates an object that that is a collection (meaning elements -- objects -- can be added to it to create that collection. It has nothing to do with direction and force.
Pausing the world
By IReallySuckAtGreenfoot, with 1 reply.
Replied to by IReallySuckAtGreenfoot, over 7 years ago:
I have resolved the issue. I'll post the code just in case anyone needs this later. My world:
need Help!
By kris10wb@gmail.com, with no replies.
I already searched a code on how can i make a background move. my problem is, in a space game, there's this random asteroids coming from the right edge then the rocket will shoot it and when i reached the corresponding score , a planet will appear. can anyone atleast help me? do you know some code regarding to this instances? thank you.
Problems with 's' and 'e' keys.
By MrHare, with 7 replies.
Last reply by MrHare, over 7 years ago:
If anyone else using a Mac has this problem, the fix is to open your Terminal and type: defaults write -g ApplePressAndHoldEnabled -bool false For some reason it is not an option in System Preferences .
Changing from world to world by clicking a button
By ThorneC, with 1 reply.
Replied to by danpost, over 7 years ago:
The greenfoot.Greenfoot class has the methods you will need both for checking on click on an actor and for changing worlds. Check out the documentation on the class.
I keep getting this error "class, interface, or enum expected"
By Herzensburger, with 1 reply.
Replied to by danpost, over 7 years ago:
Remove all from lines 7 to line 24 except for line 23.
Actor - gravity, stop on block.
By RevoltecX7, with 10 replies.
Last reply by RevoltecX7, over 7 years ago:
Thanks
countdown
By doglover555, with 3 replies.
Last reply by Super_Hippo, over 7 years ago:
With speed 50 (speed slider in the middle), one second is about 55 act cycles, so you could count it as it is and when displaying, you divide it by 55. And stopping at 0 makes sense if you don't want a negative time. You could stop the scenario at 0 or do whatever should be done when the time is over.
How to make scrolling enemies?
By Brantgarron, with 1 reply.
Replied to by Brantgarron, over 7 years ago:
my world class
Help with Game Over Screen
By HelpMe123, with 3 replies.
Last reply by Super_Hippo, over 7 years ago:
Line 18 alone removes all objects from the world.
How do I use a int variable from MyWorld in an Actor class
By Bonobo, with 2 replies.
Last reply by Bonobo, over 7 years ago:
Alright. Thanks a lot :)
mouseDragged() help
By doglover555, with 1 reply.
Replied to by Super_Hippo, over 7 years ago:
The mouseDragged method requires an object, not a class. So for a start, replace 'Pet.class' with 'this'.
Trying to shoot randomly appearing enemy but get error
By Brantgarron, with 4 replies.
Last reply by Super_Hippo, over 7 years ago:
You can have a variable used as a timer in your world. <Code Omitted>
How do I scale my picture
By doglover555, with 3 replies.
Last reply by Super_Hippo, over 7 years ago:
Do you change the image in your act method? Or in other words, if you don't start the scenario and add a Puppy with right click on the class, is the image huge or 20x20? Are you sure it is compiled? Sometimes, when the auto-compile doesn't work anymore, you have to restart Greenfoot.
308
309
310
311
312
313
314
X