Enemy move to player

Does anyone have any idea on a good starting point to create a basic enemy AI that will make it possible for the enemy to move towards the player. Also something to make it so that the enemy will rotate when it moves.

Good example of what im explaining is here but its Actionscript 2 instead

http://www.freeactionscript.com/2008…follow-player/