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

2017/2/13

How to change the default Actor/World class codes?

Super_Hippo Super_Hippo

2017/2/13

#
When creating a subclass of Actor or World, you will get a bit of code automatically added to the class. How do I change it? I have found the codes of the classes which you can import (...Greenfoot\lib\greenfoot\common), but where is "default actor/world subclass"?
danpost danpost

2017/2/13

#
Mine are in 'Greenfoot/lib/english/greenfoot/templates/' with names of 'worldclass.tmp', 'actorclass.tmp' and 'stdclass.tmp'. Yours will probably be found in a similar place under the language you use.
Super_Hippo Super_Hippo

2017/2/13

#
Thank you very much. I had to edit these files exactly there. The other languages don't have these templates.
You need to login to post a reply.