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
Printing a statement to user if FileNotFoundException
By someone1, with 2 replies.
Last reply by someone1, about 11 years ago:
I want to process files up to 10 if for example they input 11, and also print a message to the screen for the files that were not processed saying "This file does not exist" + thefilename.
images not changing
By hoothoot, with no replies.
on both the a and s commands my images aren't changing. please help me figure out why.<Code Omitted>it's under checkKeypress.
Need help making a frogger game
By A.Derendorf, with 2 replies.
Last reply by A.Derendorf, about 11 years ago:
Thanks man! We actually figured it out later. We are new at this but we know you are a beast danpost. Thanks again for your services to the forum.
Need help with tree collision
By randombruh, with 9 replies.
Last reply by Mark1984, about 11 years ago:
Hey randombruh, thanks for the help with the code, absolute lifesaver - would i be able to contact you with help for the other parts of the game? regards
World music recover paragraph Place the actor
By brunocampos, with 1 reply.
Replied to by danpost, about 11 years ago:
Change line 26 to: <Code Omitted>The 'myMusic' field is in the Main class, so the compiler needs to be aware that the world returned by 'getWorld' is indeed a Main world.
How to process multiple text files identified by the user
By someone1, with 7 replies.
Last reply by someone1, about 11 years ago:
Disregard my last post, i didnt read your other post, i think ive figured it out
Make an actor follow another using getObjectsinRange
By Vishis, with 6 replies.
Last reply by Vishis, about 11 years ago:
danpost wrote...
Vishis wrote...
for the math what does the signum do?
Refer to the Math class API on the
signum
method (it returns the sign of the given number).
the "man" in "man.getX" where is that supposed to come from (the compiler says it cannot find it as a variable), and what is the purpose of using it?
The was missed in converting my test code to what you had. It should be "player.getX()".
the "(Actor)players.get(0)" what does that line do?
The 'get' method r
How to change animations depending on the key pressed?
By ando600, with 10 replies.
Last reply by ando600, about 11 years ago:
No. Your code was right. I implemented your code, but also had to change the location of some variables, as they could not be modified outside of private methods. Once i did that, you code worked great. Thanks again!
Make Boolean Variable for Classes Eaten by Actor
By baffled, with 1 reply.
Replied to by danpost, about 11 years ago:
A boolean value, not necessarily a 'variable', would be needed. This value would be used as a condition within an 'if' statement. If you had int field(s) to track how many of each type actor were eaten (generically called 'actorsEaten' in the following): <Code Omitted>I guess you could make a variable out of it by something like the following, however: <Code Omitted>For multiple actors:
What's wrong from this script :( Help Me Pleas ..
By hikkikomori008, with 1 reply.
Replied to by danpost, about 11 years ago:
From what I can tell, the images should be changing when the 'space' is pressed; however, hyperactively. As far as movement -- you are rotating the locations of the four actors among the same locations. So, there would be no apparent movement -- just the apparent changing of the images.
How to repeat command at green foot ??
By hikkikomori008, with 1 reply.
Replied to by danpost, about 11 years ago:
If this is not spam, please elaborate (explain in detail what you are questioning and give an example).
level switching
By hoothoot, with 6 replies.
Last reply by hoothoot, about 11 years ago:
nope that was the problem i think. i would rather not post the code as its really long and unorganized currently. i forgot to call it within another character.
How to examine the accordence of the the localisation of two objects
By RuinaImperii, with 1 reply.
Replied to by danpost, about 11 years ago:
The variable 'food' is declared in the constructor of the Forest class, and then, within a for loop. It is not recognized anywhere else within that class or any other class as far as I can tell by what was given. It is only valid after declared within the for loop up to the end of that for loop.
Need help with assigning variable in constructor
By someone1, with 3 replies.
Last reply by danpost, about 11 years ago:
@ElNo, you need the 'new' keyword to create instances of the gameConst class; also, the gameConst objects created within your while loop are not being retained anywhere and each one is lost when the loop continues on its next cycle. A static array field might be something to consider:
Asteroids ( Adding breaks and flames to the rocket)
By Liam1989, with 1 reply.
Replied to by danpost, about 11 years ago:
Please refer to
this discussion
.
535
536
537
538
539
540
541
X