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

2013/6/10

Multiple levels

How do code multiple levels? I have been conundrumising this conundrum since i got greenfoot and am completly and utterly baffled. I f anyone can help, then please help The DoctorProfessor is out!
Zamoht Zamoht

2013/6/10

#
You can use Greenfoot.setWorld(World world) method to change the world. Or you can put a cleanup code in your world class and then make different setups depending on the current level.
What is a cleanup code? The DoctorProfessor is out!
Zamoht Zamoht

2013/6/10

#
removeObjects(getObjects(null)); this will remove all the objects from your world so you can add new objects for another level.
Thank you! The DoctorProfessor is out!
Duta Duta

2013/6/12

#
I completely forgot to upload the scenario I made for you a couple of days ago >.< It's here.
You need to login to post a reply.