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
Explosions of spaceships
By Welli123, with 2 replies.
Last reply by Welli123, about 8 years ago:
Ok thx :)
A 'Shot' spawns at my mouses position, even though I have not implied it into my code.
By ElAdriano807, with 10 replies.
Last reply by ElAdriano807, about 8 years ago:
Wow, it seems to work perfectly now. No more shots coming from my mouse. Thank you very much for your help, Danpost :) It really has been that simple. I wouldn't ever have found out myself since we never learned something about the class tree in school. Thanks again, you saved my weekend :)
Make actor disappear
By Dipne0p, with 11 replies.
Last reply by danpost, about 8 years ago:
Dipne0p wrote...
danpost wrote...
Do you still get the same error?
yep
Since you are getting a run-time error, that means your project compiles. You can therefore upload it onto greenfoot and include the source code so that it can be reviewed and tested. (or you could first show the Shooter class code here to review)
UserInfo
By Troxter, with 11 replies.
Last reply by danpost, about 8 years ago:
Troxter wrote...
when i want to use the double again do i have to use <Code Omitted>or can i simply use the string as my double?
You cannot use a String as a double -- and there is no 'toDouble' method in the String class. Did you even look at the
String API documentation
to see what methods were available to use?
Displaying Gravity Constant
By bannigrin, with 4 replies.
Last reply by bannigrin, about 8 years ago:
@danpost Thank you! That fixed it
landing on a platform
By rutger362, with 2 replies.
Last reply by danpost, about 8 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, about 8 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, about 8 years ago:
thanksss :)
Subclass method
By s_zaf, with 4 replies.
Last reply by s_zaf, about 8 years ago:
thanks!!
text box showing up when character presses enter
By jacquelinereilly, with 35 replies.
Last reply by danpost, about 8 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, about 8 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, about 8 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, about 8 years ago:
Oh.
Error when Enemy or Man is shooting
By NielsV5B, with 2 replies.
Last reply by NielsV5B, about 8 years ago:
Thanks, that's working now!
Placing an Object where the Player stands
By PoriChori, with 2 replies.
Last reply by PoriChori, about 8 years ago:
Thanks! Now it works :)
312
313
314
315
316
317
318
X