You can Pretty much use the same approach as the tower defence example, these towers track the enemy ( Using turret behaviour ) and then spawn a projectile object like Kan stated, that can track and even pre-empt the players next location (depending how difficult you want it to be). If you go to new project scroll down the list and look for the tower defence example and de-construct the code they use. After you get that working its a simple task of making that sprite move in the air, there are a number of tutorials for moving enemies right here at the top of the page under the tutorials heading. Hope this helps.
Regards
Joel