Thanks! That's solved that problem. However, another problem has emerged. When I press F5, I get the "NullReferenceException was unhandled - Object reference not set to an instance of an object." message popping up in the enemy class. It's pointing at the following line:
|foreach (Enemy enemy in theenemies) |
Specifically, it's pointing at the word in.
I don't know much about programming, but something's telling me it's related to the array declaration "Enemy theenemies;"
What do I do now?