Hmm, it also got stuck for me once when I pressed 2, nothing happened.
The error shouldn't happen due to lag on the gallery, chances are you're doing something either very special or a bit dodgy in your code... How are you declaring / setting your images? If you upload the source we should be able to work out what's going on.
Umm, interesting theme?
A good start to a maze solving algorithm here, but it seems quite inefficient at traversing a maze, it takes a lot of time - if you have a look at your algorithm there's probably a few changes you can make to speed things up a lot!
Nice game - though there's a bug with the game over bit. If your life goes to less than 0 without reaching 0 first then you just keep going forever! I'd guess you've probably used a test as to whether life==0 as to whether the game is over, if you chance this to life<=0, you'll guard against that problem.
Hi, I'm getting this error after I've made the first shot:
java.lang.IllegalStateException: The actor has not been inserted into a world so it has no location yet. You might want to look at the method addedToWorld on the Actor class.
at greenfoot.Actor.failIfNotInWorld(Actor.java:620)
at greenfoot.Actor.getX(Actor.java:139)
at Gun.countBullets(Gun.java:47)
at Gun.move(Gun.java:34)
at Gun.act(Gun.java:25)
at greenfoot.core.Simulation.runOneLoop(Simulation.java:288)
at greenfoot.core.Simulation.run(Simulation.java:158)
This generally means that there's something wrong on line 47 of Gun.java - most likely you've removed an object and then tried to call a method on it that depends on it still being in the world. If you're still stuck, post the source and we can take a look.
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.)
Very nice graphics! I think I can just about work out what to do, it's a pretty classic game... ;)
That said, can you get the AI so it can never be beaten? Or have multiple difficulty levels! (Unless of course there were but I didn't find the setting because of the language barrier. In which case english would be helpful :-) )
2009/5/23
TargetPractice
2009/5/23
Stoner Wombats
2009/5/23
Journey To Planet Y
2009/5/23
TargetPractice
2009/5/23
Bird Poop
2009/5/23
Fight'emUP
2009/5/22
Snake
2009/5/21
Jogo da Velha
2009/5/21
Day 3