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

2015/7/5

How do I rename a world I already created?

PikachuKirby PikachuKirby

2015/7/5

#
I named my world "World" and so when I try to program the Title Screen, the error message 'greenfoot.World is abstract; cannot be instantiated' pops up. Do you guys have any ideas on how to rename my world or to fix the problem?
Super_Hippo Super_Hippo

2015/7/5

#
If you open the class code, you will find a line like 'public class World extends World'. Rename the first World to the new name. The constructor (→all constructors) needs to have the same name, so change the World in 'public World()' to the new name as well.
PikachuKirby PikachuKirby

2015/7/6

#
Thank you! It worked!
You need to login to post a reply.