This site requires JavaScript, please enable it in your browser!
Greenfoot back

Report as inappropriate.

BwuffaloBwill2
BwuffaloBwill2 presents ...

2009/5/22

Bird Poop

Push space bar to drop poops into buckets at bottom of screen. You get 50 poops before the game ends. Good Luck!

4001 views / 775 in the last 7 days

Tags: game physics with-source keyboard target bird poop pooping buckets

open in greenfoot
Your browser does not support the canvas tag.
mjrb4mjrb4

2009/5/23

Hi, the error you're getting is the following: java.lang.IllegalArgumentException: Could not load image from: bucket.png at greenfoot.GreenfootImage.loadURL(GreenfootImage.java:151) at greenfoot.GreenfootImage.loadFile(GreenfootImage.java:172) at greenfoot.GreenfootImage.<init>(GreenfootImage.java:75) at greenfoot.Actor.setImage(Actor.java:277) at Bucket.<init>(Bucket.java:7) at BirdWorld.<init>(BirdWorld.java:6) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at greenfoot.export.GreenfootScenarioViewer.instantiateNewWorld(GreenfootScenarioViewer.java:349) at greenfoot.export.GreenfootScenarioViewer.init(GreenfootScenarioViewer.java:243) at sun.applet.AppletPanel.run(Unknown Source) at java.lang.Thread.run(Unknown Source) This is probably because you've referenced your images in the source in the wrong case - make sure that you refer to the images exactly (bearing in mind upper and lower case characters) and try again. You should also upgrade - this problem has been solved in Greenfoot for a while now (the compiler now tells you if any of the cases are incorrect.)
A new version of this scenario was uploaded on Tue May 26 15:03:09 UTC 2009
mjrb4mjrb4

2009/5/27

If you're still struggling with this, feel free to upload the source so we can point out what's wrong! I'm still pretty much convinced it's a problem with your images being in the wrong case though.
A new version of this scenario was uploaded on Wed May 27 15:28:55 UTC 2009
Source code now available. Any help would be great!
mjrb4mjrb4

2009/5/27

Hmm, it appears you are referencing things in the correct case after all - my mistake! I simply opened your project, dropped all the images in an images folder inside the project directory (instead of in the directory itself) and exporting seemed to work fine. So firslty I'd suggest trying that. Secondly, I really would recommend upgrading - it does seem like you're using an old version and there have been a fair few fixes in the last couple of releases. Unless there's a bug in the latest release that means you have to use an older version (unlikely) then it's always worth upgrading.
A new version of this scenario was uploaded on Wed May 27 22:26:49 UTC 2009
Thanks for all your help. It works!

Want to leave a comment? You must first log in.

Who likes this?

No votes yet.