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
NumberFormatException on reading files
By mrbrook, with 5 replies.
Last reply by mrbrook, over 6 years ago:
I just build a new file to replace, it might be an unknown error with that space before the very first line, anyway this br.close help my code get better execution :) thanks for your respond
How to instantiate a new world object
By TNesler, with 14 replies.
Last reply by danpost, over 6 years ago:
TNesler wrote...
I am working with a blank world image. That's why I was surprised that the default color would be black when the background on screen was white.
Well, the initial default background image should be white and its drawing color should be set to white. It is when you create a new
GreenfootImage
object giving width and height where its default drawing color is black.
Can I place an object randomly by choosing from ten coordinates I set in a list?
By Iz.\uo, with 1 reply.
Replied to by Super_Hippo, over 6 years ago:
If you already set up the list, you only need to get a random number (
Greenfoot.getRandomNumber(10)
) and use that number as the index of the coordinate-list.
How do I end my game when my lives counter == 0??
By charliejustshrekedyou, with 2 replies.
Last reply by charliejustshrekedyou, over 6 years ago:
cool, thanks!
how can i fix this error
By divinity, with 2 replies.
Last reply by danpost, over 6 years ago:
Line 51 does appear to be troublesome. You have the extraneous characters.
'md5(
, near the end of the line.
Prevent different objects from completely overlapping with each other
By Abwatts, with 17 replies.
Last reply by Abwatts, over 6 years ago:
danpost wrote...
Abwatts wrote...
I don't know if there's a way to pause the game without using the while loop which essentially prevents other methods from executing in the same time (they wait for while loop to finish its thing first and then they execute, I guess).
I think you want something like: <Code Omitted>
Thanks a lot!
I truly appreciate all
When do I use World. and when getWorld().
By RedMine360, with 2 replies.
Last reply by RedMine360, over 6 years ago:
ok makes sense now :D thx
Need help with a health counter...
By charliejustshrekedyou, with 2 replies.
Last reply by charliejustshrekedyou, over 6 years ago:
That worked!!! Thank you!!!
Getting actors to shoot
By charliejustshrekedyou, with 2 replies.
Last reply by charliejustshrekedyou, over 6 years ago:
Thank you! It's working now :)
Help with Ping pong game
By Melissa, with 1 reply.
Replied to by Melissa, over 6 years ago:
Right now i got this <Code Omitted>
Scoreboard not working
By dammnn, with 4 replies.
Last reply by dammnn, over 6 years ago:
It works! Thanks a lot
I cannot see the Greenfoot program
By Illumiknight07, with 1 reply.
Replied to by danpost, over 6 years ago:
Try what is given
here
.
read file always catch IOException
By mrbrook, with 6 replies.
Last reply by mrbrook, over 6 years ago:
I got it, it just the problem within filename, so I just need to rename the filename, actually it was basic mistakes xD u don't have to write your own file extension because greenfoot can read it automatically, i.e I changed my filename from "highscore.txt" to just "highscore" and save it to the folder that you pointed, thanks it helps! have a nice day
Using EasyMock with greenfoot.Greenfoot
By Xevinaly, with 2 replies.
Last reply by Xevinaly, over 6 years ago:
Thank you for the advice. I created an identical wrapper and it worked perfectly for mocking :)
Having trouble with the jump machenic and sound using it
By Chelrieo, with 17 replies.
Last reply by danpost, over 6 years ago:
Try a number like 0.8 for gravity and remove lines 56 thru 58 in the Hero class.
202
203
204
205
206
207
208
X