Hello,
I want the animal that has been shot to get removed from the world.
How and where do I need to put the code for this.
Thanks!
if (isTouching(Other.class))
{
removeTouching(Other.class);
getWorld().removeObject(this);
return;
}public void raaktWolf()
{
if (isTouching (Wolf.class))
{
World world = getWorld();
world.removeObject (this);
}
}