I used this method to make an object disappear when it touches another certain object. However, the object disappears a bit earlier than before it touches the other object. Here is the code.
{
public void act()
{
lostBall();
}
public void lostBall()
{
removeTouching(Ball.class);
}
}
