I have read some threads about this topic, but I can't make it work.
And in my act method:
public void tid_metode()
{
if (tid >300)
{
getWorld().removeObjects(getWorld().getObjects(ND.class));
}
}tid++;
