I carry on getting an error message telling me that I am trying to reference an object that doesn't when my shot reaches the end of the world:
Please can you explain to me why the error message keeps coming up when my shot touches the edge of the world, It destroys itself and the asteroid fine.
public void deleteIfHit() { if(atWorldEdge()) { destroy(Shot.class); } if(canSee(asteroido.class)) { destroy(asteroido.class); destroy(Shot.class); } }