I am trying to make an actor respawn after it has been removed. The code I use to remove the actor is:
public void EatenbyBird()
{
Actor Bird = getOneObjectAtOffset(0, 0, Bird.class); // looks at the birds location
if(Bird != null) {
getWorld().removeObject(this); //if bird touches the food then it become null
}
}
Please respond ASAP :-)
