java.lang.IllegalStateException: Actor not in world. An attempt was made to use the actor's location while it is not in the world. Either it has not yet been inserted, or it has been removed.
This is my error after the zombie gets hit by the bullets he dies and i get this error and the game stops :( what can i do??
die code for the zombie. (Kugel = Bullet)
public void sterben()
{
Actor kugel;
kugel = getOneObjectAtOffset( 0, 0, Kugel.class);
if (kugel != null)
{
World world;
world = getWorld();
world.removeObject(this);
world.removeObject(kugel);
}
}