Looks good - are there any instructions for playing it? I spent a fair while trying to figure it out but I'm not sure what to do... Perhaps I'm just being a bit thick and tired!
Hi Drumlind,
The problem isn't with compilation - everything on the gallery is already compiled, regardless of how the scenario shows up. This is instead a runtime error - because of the wrong image cases the scenario freezes before it's done anything. You can't actually upload to the gallery without compiling - it won't let you ;)
Hiya,
As others have pointed out, this doesn't run at the moment, the exact error I'm getting is:
java.lang.NullPointerException
at greenfoot.util.GraphicsUtilities.toCompatibleTranslucentImage(GraphicsUtilities.java:274)
at greenfoot.util.GraphicsUtilities.loadCompatibleTranslucentImage(GraphicsUtilities.java:221)
at greenfoot.GreenfootImage.loadURL(GreenfootImage.java:143)
at greenfoot.GreenfootImage.loadFile(GreenfootImage.java:167)
at greenfoot.GreenfootImage.<init>(GreenfootImage.java:70)
at checkerun.act(checkerun.java:22)
at greenfoot.core.Simulation.runOneLoop(Simulation.java:200)
at greenfoot.core.Simulation.run(Simulation.java:129)
NullPointerExceptions often occur when you haven't initialised something properly - i.e. you're doing something with a variable that contains null (is empty.) But apart from that, there's not much anyone can do unless you upload the source code (it's via a check box in the export dialog.)
Nice! At the moment the gravity seems a bit weak (it'd be nice to keep it in orbit just by clicking which it doesn't seem like you can do at the moment) but apart from that good work!
2009/3/21
Softbody Physics
2009/3/20
Dialog Demo
2009/3/20
Snake
2009/3/19
Pinball Physics
2009/3/19
FinalChance
2009/3/18
FinalChance
2009/3/18
Pacman
2009/3/16
Pyro Sand
2009/3/16
Simple Gravity