Hi :)
I've got a little problem with the game I've just made : the penguin throws the balls on me (the crab) and I have to make them bounce at the other side of the map (as if I had to defend my goal). But when the balls reach the other side of the map they don't disappear as it is program in my Ball's code, they just stay here. Does someone know a solution ? :)
Thanks :)
public void distroyed(){ if(getX()>= getWorld().getWidth()) { getWorld().removeObject(this); } }