Competition, predation and species responses to environmental change