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

2012/12/21

I want my baby.class to grow to a child.class but I dont know how to use the grow method..

kaatja kaatja

2012/12/21

#
I already tried this: if (canSee(Wissenschaftler.class)) { getWorld().addObject(new Kind(), getX(), getY()); getWorld().removeObject(this); } But it doesnt work, when i run the scenario an error appears telling me that "the actor is not in the world" The second problem is, that with this code many children appear instead of one.. I hope you can help me find the right code. :)
danpost danpost

2012/12/21

#
This code should only be placed in the baby class (nowhere else).
kaatja kaatja

2012/12/21

#
it is ! .. but it doesnt work
You need to login to post a reply.