Extract from the how do I FAQ:
Object moving
Patrolling and shooting ennemy - LINK
Platformer behavior
Ennemy control with platformer behavior - LINK
And whatever other link you might find useful in the list <img src="smileys/smiley1.gif" border="0" align="middle">