As the title says, I want an object to disappear after a certain time, or having traveled a certain distance.
public void forsvind()
{
if (//the method to measure time or travel)
{
removeObject(ND.class);
}
}public void forsvind()
{
if (//the method to measure time or travel)
{
removeObject(ND.class);
}
}public void forsvind()
{
if (//the method to measure time or travel)
{
getWorld.removeObject(ND.class);
}
}private int timer = 0;
timer++;