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

Comments for Paul

Return to Paul

killer17590killer17590

2009/5/19

i have put it here for people to help me fix it. . . he can walk and jump but for some reason when i export it, he cant
mjrb4mjrb4

2009/5/19

Hi, The error you're getting is the following: java.lang.NullPointerException at greenfoot.util.GraphicsUtilities.toCompatibleImage(GraphicsUtilities.java:218) at greenfoot.util.GraphicsUtilities.loadCompatibleImage(GraphicsUtilities.java:200) at greenfoot.GreenfootImage.loadURL(GreenfootImage.java:119) at greenfoot.GreenfootImage.loadFile(GreenfootImage.java:143) at greenfoot.GreenfootImage.<init>(GreenfootImage.java:69) at greenfoot.Actor.setImage(Actor.java:306) at Paul.checkKeys(Paul.java:74) at Paul.act(Paul.java:36) at greenfoot.core.Simulation.runOneLoop(Simulation.java:167) at greenfoot.core.Simulation.run(Simulation.java:108) Basically, check what you're doing on line 74 of Paul.java. Are you using the right case for specifying the image names? And have you uploaded all the images correctly (put them in the images folder?) For us to help you more, you'll need to upload the source so we can have a look at it! Just update the scenario with the "publish source" checkbox checked. Michael
killer17590killer17590

2009/5/19

i cannot find this button, bear in ,mind this was made with version 1.4.1
killer17590killer17590

2009/5/19

the problem with the images was the case and they are in the right folder
A new version of this scenario was uploaded on Tue May 19 20:22:33 UTC 2009
killer17590killer17590

2009/5/19

what about the fact that if i press pause i can move the penguin and stuff around?
mjrb4mjrb4

2009/5/19

I'd really recommend using a newer version of Greenfoot, there has been a HUGE amount added, changed and fixed since that version was released. You can lock the scenario (which prevents you moving things around) using the lock scenario checkbox, though again you may need to upgrade to get that functionality. If you were using a later version you'd also find that you wouldn't run into the image case problem since the compiler will now pick it up and tell you what the case should be. As a comment on the scenario itself, it's also quite tall and doesn't fit on my screen all at once, you may want to make it shorter so it fits onto smaller laptop screens and suchlike.
killer17590killer17590

2009/5/19

sadly i cant change the version, as this is the version they are currently using at college and it throws up compatibility issues
A new version of this scenario was uploaded on Tue May 19 22:57:17 UTC 2009
A new version of this scenario was uploaded on Tue May 19 22:58:16 UTC 2009
A new version of this scenario was uploaded on Tue May 19 23:03:03 UTC 2009
A new version of this scenario was uploaded on Tue May 19 23:08:38 UTC 2009
A new version of this scenario was uploaded on Tue May 19 23:13:32 UTC 2009
MuZiKMuZiK

2009/5/20

Well...i think it's time for a mass software update?