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
Switch World..
By kris10wb@gmail.com, with 2 replies.
Last reply by kris10wb@gmail.com, almost 9 years ago:
thanksss :)
Subclass method
By s_zaf, with 4 replies.
Last reply by s_zaf, almost 9 years ago:
thanks!!
text box showing up when character presses enter
By jacquelinereilly, with 35 replies.
Last reply by danpost, almost 9 years ago:
Hippo is correct. Lines 41 through 45 should be changed to what Hippo suggested and be cut and inserted at line 24.
jacquelinereilly wrote...
So is there a way I can have the text placed on top of the image I have for the text boxes?
Please indicate what "the text" and "the text boxes" are in your code (what Class of object and what variable name you gave it) for clarity.
Greenfoot not accessing sound file
By Mrs.Gorges, with 1 reply.
Replied to by Super_Hippo, almost 9 years ago:
Since you say everything was done is it should, seeing the picture could help. But you need to upload the image and post a link to that image. Whatever you linked there (an E-Mail?), it doesn't work like this.
how to make win screen
By rinariirin, with 16 replies.
Last reply by Super_Hippo, almost 9 years ago:
No one can help you if you can't explain your problem.
Can anyone explain this code to me?
By mouseofgory, with 9 replies.
Last reply by Yehuda, almost 9 years ago:
Oh.
Error when Enemy or Man is shooting
By NielsV5B, with 2 replies.
Last reply by NielsV5B, almost 9 years ago:
Thanks, that's working now!
Placing an Object where the Player stands
By PoriChori, with 2 replies.
Last reply by PoriChori, almost 9 years ago:
Thanks! Now it works :)
Terminal Window
By Darkmauro, with 4 replies.
Last reply by danpost, almost 9 years ago:
What is mundo.ka'? where is the code that creates the 'mundo.ka' actor? what does that code look like? where is the variable 'ka' declared in your world class? what is the error message? What does the code to the 'play' method in your 'animator' class look like?
objects not spawning in world
By darkstargamer, with 9 replies.
Last reply by danpost, almost 9 years ago:
First, you will need to change the name of some fields. Actually, to make things easier, an intermediate class between Actor and the four object types will be helpful. Add the following class to your project: <Code Omitted>Next, change the GroundBlock class to this:
how make enemy get position of player
By jokhooo, with 1 reply.
Replied to by danpost, almost 9 years ago:
See
here
.
Health for Emeny
By KauTC, with 5 replies.
Last reply by danpost, almost 9 years ago:
You will need to add a field in the Monster (or Second) class to track bullet hit(s). It could be a boolean tracking previously hit or an int counting each hit (depending on how many hits you are allowing). Are your monsters truly bouncing off the edges? Seems like you may have some issue with that (but, maybe not). Your at world edge offset values are not consistent in the Lattack class. Was that intentional? The 'eatFirst' method can probably be simplified. If nothing else, the last 'if' (line 63) should probably not have the 'else' in front of it and be started on a new line.
Pls help me making a countdown
By Troxter, with 5 replies.
Last reply by Troxter, almost 9 years ago:
danpost wrote...
Lines 20 through 22 instantly depletes the timer value. Using 'while' there prevents the timer from counting act steps. The setting of the speed of the scenario should be done at the time the world is being created (in your world constructor). It may not (or it may) matter that all fish2 objects will be invulnerable at the same time due to 'e' being static. It may not be necessary to have the 'e' field as all it does is inform that the timer value is not zero (which can be checked directly). The less fields you use, the less complicated, less confusing and less error-prone
wie kann ich meine Scenario herunteladen?
By akhavariii, with 1 reply.
Replied to by Super_Hippo, almost 9 years ago:
Click "Export" (or "Teilen" in the German version) in the top right corner in your Greenfoot program to upload your scenario. (Why is the question in the title asking the opposite?)
Spawning Mobs wave by wave
By KauTC, with 3 replies.
Last reply by danpost, almost 9 years ago:
KauTC wrote...
how to write the code so that the mobs will spawn when your score = 5
<Code Omitted>
314
315
316
317
318
319
320
X