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
Unanswered questions for Greenfoot
By justine, with 2 replies.
Last reply by kiarocks, almost 14 years ago:
cool, thanks
Trouble with updating the GreenfootImage
By kiarocks, with 15 replies.
Last reply by danpost, almost 14 years ago:
I think you will be alright if you use my suggestion above. Just make sure you change 'World' to your world name in step # 2 and eliminate all instances of 'World.' in step # 3. And if you do not have a 'private String btnText;' in your button object classes, add them and make them equals to the button text. Then in step # 2, you should have in brackets '{ World.lastButton = btnText; }'. Again 'World' should be 'TextWorld', if that is the name of your world; if not, it should be the name that you gave your world. How do I access the '.png' image that you mentioned?
Source code for bouncing ball
By tmcappe, with 17 replies.
Last reply by danpost, almost 14 years ago:
No problem!
Setting fonts and line thickness(width) for draw
By Ray, with no replies.
I want to raw boxes (rectangles) with text inside. Followed the tutorial for text on the world with the ball bouncing left and right. I would like to pot a rectangle around the text with a given width, as well as adjust the text style (font, etc). Any help? PS: I am very new to this.
Allocating memory?
By ImFerocious, with 2 replies.
Last reply by supermagicmilk, almost 14 years ago:
Go to Greenfoot/lib/ where you should find a file called greenfoot.defs. Open it in a text editor and scroll to the bottom where you should see this line: bluej.vm.args=-Xincgc -Dapple.awt.graphics.UseQuartz=true Add the options to the end here and it should help (like so): bluej.vm.args=-Xincgc -Dapple.awt.graphics.UseQuartz=true -Xms1024M -Xmx1024M I set mine to 1024M because I've got a lot of memory on my computer, but you should set it to something appropriate for your own machine. It doesn't remove the problem, but it makes it come up less frequently.
getWorld() ? - Please reply !
By MrIncredible, with 3 replies.
Last reply by MrIncredible, almost 14 years ago:
Ah ! Vielen Dank !!! Ich probiere es gleich mal aus!
MrIncredible
Newtons lab Change body color
By booyah72, with 1 reply.
Replied to by prelude, almost 14 years ago:
Can you post the solution?
German
By MrIncredible, with 20 replies.
Last reply by mik, almost 14 years ago:
I'm a bit German as well...
About pause ideas
By kiarocks, with 13 replies.
Last reply by kiarocks, almost 14 years ago:
and not delay() method.
Constructor maddness!!
By Robto, with 5 replies.
Last reply by Robto, almost 14 years ago:
Lol... by wrting out the code of the different classes in my previous post, it hit me... I had to add the following in Space <Code Omitted> and the following code in Shot <Code Omitted> Off to try
Lol Bug in Bones Scenario
By MrIncredible, with no replies.
!AAARGH!! I can't upload the picture of the bug in here SORRY !
( Cool effect ?
Link to it !
)
MrIncredible
How to practice Greenfoot API
By yemengreenfoot, with 2 replies.
Last reply by yemengreenfoot, almost 14 years ago:
Thank you. It works.
Moving objects to objects/location
By Robto, with 18 replies.
Last reply by Robto, almost 14 years ago:
Hi guys, Code works like a charm. danmac: the hang was indeed due to the not specified move() value. Changing it to move(1.0) solved the "hanging". danpost: I adjusted the setRotation to setRotation(x) and thats work fine. I new actually keep the setRotation(0) in the code because I like the actor not turning better for now. Only funny thing is that the actor not always moves in a straight line. It somethings goes to the specified location in a curve which is funny to see. Next step is awareness and world population refinement. Have the resources appear next to eachother and mak
Changing scenario speed within a program
By ianking, with 3 replies.
Last reply by mjrb4, almost 14 years ago:
Note though that as GameCode said - if you use Greenfoot.stop() you can't resume by a key press since there won't be any code running to check that key press! If you want to go down that route (i,e, resume from a key press), then the easiest way would probably to have a "paused" boolean field in the relevant actors, and invert it whenever a particular key is pressed. You'd then only execute the main body of the act method if paused was set to false.
Greenfoot on smartphone?
By MrIncredible, with 5 replies.
Last reply by MrIncredible, almost 14 years ago:
thanks a lot !
I'll search alone.
MrIncredible
1044
1045
1046
1047
1048
1049
1050
X