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
Question.
By donutfish, with 1 reply.
Replied to by Super_Hippo, about 7 years ago:
Try to use the getObjectsInRange method and remove the objects returned by that method.
Boss Health Help
By bboyguda69, with 3 replies.
Last reply by danpost, about 7 years ago:
It may be a MyWorld5 class issue (show codes). Of note, I do not see where your BossHealth image is updated when a hit occurs.
Adding Objects
By itscarlwheezer, with 3 replies.
Last reply by danpost, about 7 years ago:
itscarlwheezer wrote...
Thanks so much Super_Hippo can you send me that code?
<Code Omitted>Sorry, you only get what you put in for (no codes provided and very generalized description of issue).
LittleCrab
By SushiSlurp, with 3 replies.
Last reply by danpost, about 7 years ago:
All your
turnToward
calls use two x-coordinate values. You need to use one x- and one y-coordinate.
SOUND DURATION
By gdrgnxxi, with 5 replies.
Last reply by danpost, about 7 years ago:
I will give my solving suggestion at the end; first, however, I would like to inform you of some of the things I see wrong with the given codes. A big issue is that the object created at line 15 in your
Play
class is never playing and line 19 in that class will try to stop it and not the one created in your
StartGame
class which is playing. Next, even if
start
in your
Play
class was playing, it would stop instantly because the
act
method tells it to. That is, the very first time
act
is executed for the
Play
object, line 19 would stop it. Ba
LittleCrab - No error message but doesn't work
By SushiSlurp, with 2 replies.
Last reply by SushiSlurp, about 7 years ago:
that would work but i tried to make a delay so that the lobster always turns to the position the crab was 5 timeunits ago, thats why i made the switch case statement
Crab
By kobe, with 1 reply.
Replied to by danpost, about 7 years ago:
kobe wrote...
How to distinguish two crabs by different colors?
Show Crab class codes.
Null Pointer Exception in Breakout
By SpicySpaghetti19, with 2 replies.
Last reply by SpicySpaghetti19, about 7 years ago:
Thanks :)
isTouching
By asdfvckyeol, with 3 replies.
Last reply by Super_Hippo, about 7 years ago:
It shouldn't be allowed to write "it doesn't work" without any explanation. Show your Trash class code.
ScoreBoard
By ORSODO, with 3 replies.
Last reply by Super_Hippo, about 7 years ago:
The leaderboard works offline the same way. If you want to store more than the Highscore, you can use the 10 additional ints to store a total of 11 scores per user. If the score isn't very high, you can even split the int to store more than one value. Maximum value for an integer: 2,147,483,647 So if the scores are always smaller than 1000, you could store three scores in it. If the highest reached scores would be 750, 400 and 230, then the saved int could look like this: 750,400,230 If you don't want to upload and use it on the Greenfoot website anyway, then you can create a TXT file or so
New to Greenfoot
By Milk, with 1 reply.
Replied to by hassan08, about 7 years ago:
swag 1 fam a lam, welcome to the land of the fish
HELP ME. I will appreciate it very much
By hassan08, with no replies.
<Code Omitted>
me wrote...
what is wring with this comes up that it cant find symbol- method ask(java.lang.string)
MY ACTOR'S IMAGE IS STRETCHING AS IT FALLS
By gdrgnxxi, with 4 replies.
Last reply by nccb, about 7 years ago:
I think it's not stretching, it's adding lots of new copies. Looking at the code, you add a new Mustard whenever Sausage is at Y 599. But if that's the bottom of the world, Sausage remains there (things cannot fall out of the world by default in Greenfoot) adding a new Mustard every frame. I'm guessing you also need to remove the Sausage at that point using getWorld().removeObject(this). Although looking at the images, there may be a similar problem that the bread is adding lots of sausages -- same principle though.
Jumping/Falling Problems
By Blaka.Flaka, with 14 replies.
Last reply by danpost, about 7 years ago:
Blaka.Flaka wrote...
i am confused on your coding from the demo some of the coding used i haven't learned yet
What are you confused about? Maybe it can be re-written using code you are familiar with.
Blaka.Flaka wrote...
and would this work for an array of character that i have?
If I understand you correctly, I think the answer is "yes".
New to Greenfoot
By Bronxbombers11, with 1 reply.
Replied to by danpost, about 7 years ago:
Bronxbombers11 wrote...
If you want to remove an object, do you have to code it in the act method, or can you make a new method and code it in there?
Either way.
188
189
190
191
192
193
194
X