Make my enemies fly

I have an issue with making my enemies fly in my platformer. After I place the enemy on the map and use the move function they will fly directly towards my player, and not in a straight line. Any help would be appreciated!
Comments