Hello,
I am trying to make that when the player touches one of the spawned balls, all of them disappear. In the code that I have now, when they collide, only the player and the ball which hit the player disappear. But I want to do that all the balls, which have already spawned in the world, disappeard and do that every ball that spawns gets removed immediatly.
Here's the code:
This in the Ball class btw.
Thanks for the help! :)
if (isTouching(Player1.class))
{
removeTouching(Player1.class);
getWorld().removeObject(this);
}
