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);
}
}
![Twitter](/assets/twitter-4e19209ef84344ee0c433f4c7bad8d49.png)
![Twitter.hover](/assets/twitter.hover-1fb19a5bafc50deace8f88eaec867845.png)