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

2013/6/10

Conditions for new level

1
2
3
Zamoht Zamoht

2013/6/12

#
Okay I really want to make it work! This is starting to annoy me a little. Could you upload your scenario so I can download it and check whats wrong myself?
Got it
an error screen came up. i'm worried... The DoctorProfessor is out...
Zamoht Zamoht

2013/6/12

#
What error now? :)
it says... Exception in thread "Thread-17" java.lang.IllegalArgumentException: im == null! at javax.imageio.ImageIO.write(ImageIO.java:1457) at javax.imageio.ImageIO.write(ImageIO.java:1521) at greenfoot.export.Exporter.publishToWebServer(Exporter.java:191) at greenfoot.gui.export.ExportDialog$ExportThread.run(ExportDialog.java:241) Exception in thread "Thread-18" java.lang.IllegalArgumentException: im == null! at javax.imageio.ImageIO.write(ImageIO.java:1457) at javax.imageio.ImageIO.write(ImageIO.java:1521) at greenfoot.export.Exporter.publishToWebServer(Exporter.java:191) at greenfoot.gui.export.ExportDialog$ExportThread.run(ExportDialog.java:241) got anything?
Zamoht Zamoht

2013/6/12

#
Okay so now you can't upload your scenario.. I have to say that I don't know why that error appears. I'm really sorry that I can't help you :( Though if you are able to upload your scenario I would like to look at it.
danpost danpost

2013/6/12

#
You need to remove line 124 from your previous code posting,'setuLevel(1);', from the 'setuLevel' method.
IT WORKS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! THE DOCTORPROFESSOR IS OUT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Now I want a new condition that will create a new level saying "game over". how do i change the conditions whilst keeping the old one? The DoctorProfessor is out!
Zamoht Zamoht

2013/6/25

#
I guess you could make a setupLevel(0) and then make the conditions for a game over screen.
davmac davmac

2013/6/25

#
Now I want a new condition that will create a new level saying "game over". how do i change the conditions whilst keeping the old one?
Just add your new code in to the act() method, without removing the old code.
yes, but what would those conditions be? I'm really not that good at this... The DoctorProfessor is out!
davmac davmac

2013/6/26

#
yes, but what would those conditions be? I'm really not that good at this...
Well, when do you want the game to be over?
I want the game to be over when the Bear (that's you) gets hit by a blob (the enemy). The actor names are Hero, Blob and honey. Can you help? The DoctorProfessor is out!
davmac davmac

2013/6/26

#
Hmm, that's pretty straightforward. It sounds like you need to go through the tutorials (see the "Documentation" link), tutorial #3 covers most of what you need to know here I think.
There are more replies on the next page.
1
2
3