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
Asteroids ScoreBoard Reading 100
By Sharp1122, with 20 replies.
Last reply by Sharp1122, about 6 years ago:
That worked! Thank you so much!
I need help
By MikaR03, with 31 replies.
Last reply by ninjapuffin, about 6 years ago:
or you can record your own sound
how do i make objects spawn in random places
By ninjapuffin, with 20 replies.
Last reply by ninjapuffin, about 6 years ago:
anyway THANKS!
NullPointerError
By Evstar14, with 8 replies.
Last reply by Evstar14, about 6 years ago:
Thanks soooo much for the quick solution! I have spent almost 3 hours trying to solve that, but i had no idea what the actual problem was. Thankyou
how to use gifs
By Weeb.exe, with 7 replies.
Last reply by Weeb.exe, about 6 years ago:
it doesn't allow me to use the gif code which i saw on a yt video
How to make timer on enemy fire
By JoshuaK, with 2 replies.
Last reply by JoshuaK, about 6 years ago:
Thanks for the hasty reply :)
How to make projectiles turn around?
By scaps, with 12 replies.
Last reply by danpost, about 6 years ago:
I count 5 lines where you create a new projectile_1 object. You should only have one line doing that. Actually, none of them are truly where the one line you should have should be. From everywhere except the
shoot
method, remove all lines that use "projectile". Change the
shoot
method to this: <Code Omitted>
Loading file from classpath results in NullPointerException
By alkwmd21ij, with 1 reply.
Replied to by danpost, about 6 years ago:
Try replacing "FileUtils.class" with "getClass().getClassLoader()".
Button doesn't work
By neoaspect, with 3 replies.
Last reply by danpost, about 6 years ago:
neoaspect wrote...
No I cannot
Then you probably have another actor's image over on top of the button.
Drawings
By Handgottes, with 6 replies.
Last reply by Handgottes, about 6 years ago:
okay thank you, i try to do it that way
how to create save games with greenfoot
By Weeb.exe, with 27 replies.
Last reply by Weeb.exe, about 6 years ago:
ok
Is it possible to change a players keystrokes while the scenario is running?
By Fiona, with 5 replies.
Last reply by danpost, about 6 years ago:
Fiona wrote...
So i've changed it all to field variables how do I make it so keystrokes and modifiable while the scenario is running
Add a method to the class that will change them to new values: <Code Omitted>Then in, let's say, your world, you will be able to call the method on the
Nancy
object and supply new keys. Let
newUp
,
newLeft
,
newDown
and
newRight
be
String
variables containing
How do I change a classes integer inside of the world
By elamjeul, with 8 replies.
Last reply by elamjeul, about 6 years ago:
<Code Omitted>Did a little bit of adjustment and such
Why won't my mute button work
By Fiona, with 1 reply.
Replied to by danpost, about 6 years ago:
Fiona wrote...
After Googling some solutions to create a mute button for my music in my scenario I came across this discussion. https://www.greenfoot.org/topics/56181/0 Everything works except that when the mute button is pressed the music restarts and doesn't stay muted. Is there a perhaps a line that needs to be added so it can stay muted.
Show codes (mute button class, world class).
How do I create a button to mute all sound effects from another world
By Minari, with 21 replies.
Last reply by danpost, about 6 years ago:
Minari wrote...
So no need for a MusicMute actor subclass?
Nope.
127
128
129
130
131
132
133
X