In the editor you can select an animation for each sprite by left clicking on them and going into the properties section. Though, an easier alternative is to just do what lionz said and assign the enemies to a family so the code applies to all of them.