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
add an Object with an other class' X-Y Coordinations.
By enspired, with 4 replies.
Last reply by Pointifix, over 12 years ago:
thats just a stone“s throw from me jeah ;) 1983, i was not yet on this world at that time ;) but nice, i love skiing, but it got really expensive last years
can someone help me
By Mint_Green, with 2 replies.
Last reply by danpost, over 12 years ago:
Then you want something like the following in the act method of your subclass of World: <Code Omitted>where the 'spawnNewFood' method can use the level number to determine how many of what to add to the world.
Change Greenfoot Name when ran
By Mint_Green, with no replies.
Hi, I want to change how it says "greenfootScenarioMain" on the top of my game when ran as a .jar!
Help using a while loop and getObjectsInRange
By kzb94, with 3 replies.
Last reply by danpost, over 12 years ago:
What true/false question can you ask about the list that is the determining factor in whether the worm runs or not? Check what methods are available in the
List class API documentation
.
Double Matrice and Fill Polygon
By VideoGame, with 24 replies.
Last reply by danpost, over 12 years ago:
VideoGame wrote...
Always the same problem for array; we have to put <Code Omitted>Otherwise ; illegal start of expression
Another fix would be (still in the 'fillArray' method <Code Omitted>
Then, when I try your code, "cannot find symbol - variable i " appear, so I try to give a value for i and j ( 20 ) like this ; <Code Omitted>But I don't know if it's correct
That would stop the error. But just declaring them in the 'for' statement is better:
ArrayList Method Problems
By JetLennit, with 6 replies.
Last reply by davmac, over 12 years ago:
You could also have the list be a wildcard type: <Code Omitted> Then, as long as your classes implement (or extend) "Scrollable", you can use a list of that type as the parameter value.
Accessing Variables from Other Classes
By EIGNERT, with 12 replies.
Last reply by EIGNERT, over 12 years ago:
Meant 8bitcarrotjuice*
null pointer exception
By bbrigguy@gmail.com, with no replies.
I am trying to share my scenario as a webpage. The terminal window pops up and I get the following error; log4cplus:error Please initialize the log4cplus system properly greenfoot. Id does make the webpage and applet then when I try to play the game on the webpage I get the following error; null pointer exception the details say Java Plug-in 10.51.2.13 Using JRE version 1.7.0_51-b13 Java HotSpot(TM) Client VM User home directory = C:\Users\shs ---------------------------------------------------- c: clear console window f: finalize objects on finalization queue g: garbage collect h: display this help message l: dump classloader list m: print memory usage o: trigger logging q: hide console r: reload policy configuration s: dump system and deployment properties t: dump thread list v: dump thread stack x: clear classloader cache 0-5: set trace level to <n> ---------------------------------------------------- CacheEntry: updateAvailable=false,lastModified=Tue Mar 04 12:11:00 PST 2014,length=770333 0
ForEach Problem
By Pointifix, with 11 replies.
Last reply by danpost, over 12 years ago:
8bitcarrotjuice wrote...
Dan, do you have a job as a programmer?
I never held a job as a programmer (though I have done a little this and that for places I have worked at, as well as some personal requests). I do not have any formal training, per se, in programming. Ninety-nine percent of my programming knowledge I have acquired on my own (GWBasic>QBasic>Assembly>VisualBasic>Java -- I have touched on HTLM and javascript as well).
Freaking Laagy :(
By Pointifix, with no replies.
I worked so hard on this project and now, look yourself, its so hardly laaging uploaded! Anybody got an idea why :/ http://www.greenfoot.org/scenarios/11004
Count after Rocket and Target have been removed
By Michi2610, with 5 replies.
Last reply by danpost, over 12 years ago:
Each target you create gets its own field for 'count'. Once you remove the target from the world and lose all references to it, it and its fields are flagged for garbage collection. You either need to move the field to your subclass of world (which also is an object that if you switch worlds and lose all references to the original one, the same thing will occur), or you can make the field a 'static' field whose value will need to be reset anytime a new world is created.
Width and Height of a String in pixels.
By Jak, with 17 replies.
Last reply by davmac, over 12 years ago:
where do you get the exact image height? to get the image as height as your text you need to know the text height ;)
FontMetrics getHeight() method returns the standard height of a line of text. You can subtract the leading (getLeading()) from this if you are only displaying a single line. If you want to be absolutely sure that all of the text is visible, you could use getMaxAscent() + getMaxDescent() instead of getHeight().
Need help with a task
By xxX_Muffin.man_Xxx, with 6 replies.
Last reply by xxPythonslayeRxx, over 12 years ago:
Thanks dan
Are their any places online that i can get new graphics for
By kzg0015, with 2 replies.
Last reply by kzg0015, over 12 years ago:
Thank you so much Pointfix; that helped alot
Problems With Multiple Collisions?
By allyand17, with 2 replies.
Last reply by allyand17, over 12 years ago:
Easy fix, thanks!
721
722
723
724
725
726
727
X