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
Button Function
By Celesterra, with 25 replies.
Last reply by Super_Hippo, over 7 years ago:
Yeah, line 7 should have been: <Code Omitted> This line does remove ALL numbers from the world, not only the unsolved ones: (so your comment isn't correct there) <Code Omitted>That's why line 16 (or my old line 7) is not needed.
showText won't disappear
By excitedbubbles, with 7 replies.
Last reply by excitedbubbles, over 7 years ago:
what the hell who are you?????? help us idiot
I need help
By Magicmaxi21, with 2 replies.
Last reply by Magicmaxi21, over 7 years ago:
There are buttons in the shop that upgrade and buy an actor. For example, if I press the buy button, I need to make a chicken visible if that makes sense.
Select box code not working
By excitedbubbles, with 1 reply.
Replied to by nccb, over 7 years ago:
One thing is that PlayerDeath is never set back to false. I'd also be careful generally about using static variables in the world -- as far as I remember, they are not reset when you click Reset, only when you recompile. This affects PlayerDeath but also leftSide etc. Instead of using ImageScrollWorld.leftSide, use getWorldOfType(ImageScrollWorld.class).leftSide and remove the static.
Hey, just wondering how to make counter work across lost of worlds
By AmyIsBadAtCoding, with 8 replies.
Last reply by AmyIsBadAtCoding, over 7 years ago:
Now it's throwing a hissy fit, the world constructor threw an exception. It doesn't like lines 21 and 44 saying: java.lang.NullPointerException
Help Witch This Code
By gacha321, with 12 replies.
Last reply by gacha321, over 7 years ago:
My bad :((( but, thank you for your helpp it works!
This line here has an error at .Hancur((Battleship)actor).Hancur();
By HotIce, with 2 replies.
Last reply by HotIce, over 7 years ago:
Nevermind I have solved it, thanks for any help
Counter for a pong game?
By awan16, with 2 replies.
Last reply by awan16, over 7 years ago:
danpost wrote...
The
leftCounter
field in your
Ball
class has issues. First, it is never assigned a
Counter
object -- namely, the one created and added into the world at lines 43 and 44 and referenced at line 12 in the
background
class. Since it is already referenced there, it might be best to remove line 7 in the
Ball
class and replace line 18 with the following: <Code Omitted>
Wow that works perfectly! I just stuck it in my WinLeft method and everythin
Using an int of another class
By loldertroll, with 7 replies.
Last reply by loldertroll, over 7 years ago:
no but i already fixed that
Mouse clicked in a certain area
By loldertroll, with 7 replies.
Last reply by loldertroll, over 7 years ago:
didnt work
I am unable to find the error referred to in the terminal window
By suzbo, with 2 replies.
Last reply by suzbo, over 7 years ago:
Thank you so much.
moving a dog bone to create a dog bone pile
By suzbo, with 3 replies.
Last reply by suzbo, over 7 years ago:
Perfect - I adjusted the X and Y axis locations, added a higher random number, added randomness to X axis, and achieved the final outcome of a pile of bones - thanks for all your help!
Updating Fullscreen Project
By Wasupmacuz, with 8 replies.
Last reply by Wasupmacuz, over 7 years ago:
nccb wrote...
Ah yes, sorry I forgot that it was a Java 11 method. We're currently testing Greenfoot 3.6.0 which will be based on Java 11, which should be out in a week or two.
Oh, okay. Thanks for the info!
Null Pointer Exception
By ChaosPhantom7, with 1 reply.
Replied to by danpost, over 7 years ago:
ChaosPhantom7 wrote...
Getting a null pointer exception with getWorld().addObject() << Code Omitted >>
Please provide entire error terminal output this code produced.
Spawn another Actor if a certain Actor is removed
By loldertroll, with 6 replies.
Last reply by danpost, over 7 years ago:
loldertroll wrote...
<< Code Omitted >> this is the code , it might help. (Spinne is the boss and jim is the player)
You are probably not putting the attempted codes in the right place. Try within an
act
method.
179
180
181
182
183
184
185
X