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
Displaying Gravity Constant
By bannigrin, with 4 replies.
Last reply by bannigrin, almost 9 years ago:
@danpost Thank you! That fixed it
landing on a platform
By rutger362, with 2 replies.
Last reply by danpost, almost 9 years ago:
The only difference between the two codes other than what is printed to the terminal is the range ('10' and '45'). Checking against 'null' whether a single ground object is in range is equivalent to checking if more than zero is in range (other than the fact that you get a reference to one that is in range, if one is, with the first code set). Nowhere is there any checking of the position of a near platform with respect to the enemy, which is something you will need to do.
how to add background sound?
By kris10wb@gmail.com, with 1 reply.
Replied to by Super_Hippo, almost 9 years ago:
Create and save a GreenfootSound object in your world. Then you can use "playLoop()" and "pause()" to control the sound.
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.
314
315
316
317
318
319
320
X